[Info-vax] Can't get HP CIFS running ...

dky dhruvakm at gmail.com
Sun Aug 30 02:35:46 EDT 2009


On Aug 30, 12:55 am, Bob Armstrong <b... at jfcl.com> wrote:
>   I want to run SAMBA on an Alpha OVMS8.3, so I decided to download
> and try HP CIFS 1.1 (the latest, AFAIK).  Got it installed and set up
> with no problems.  We don't have many Windows machines and none of the
> Windows machines log into a domain nor is there any domain
> controller.  I want to use "security = share" and then have no
> password on the shares (we're all friends here :-) so my smb.conf goes
> something like this -
>
> [global]
> workgroup = WORKGROUP
> server string = OpenVMS ALPHA (Samba %v)
> security = SHARE
> load printers = no
> netbios name = %h
> log file = /samba$root/var/log_%h.%m
> create mode = 0755
>
> [Bob]
> comment = Bob's files on CODA
> path = /users/bob
> guest ok = Yes
> force user = bob
> read only = No
>
>   This is essentially the same configuration I'm using with a Linux
> server running the same Samba version (3.0.28a) that CIFS is suppsed
> to be based on.
>
>   When I try and browse the shares on the Alpha from Windows, the
> connection times out.  If I go to the Alpha machine and say
>
> $ smbclient "-L" 10.1.1.2
> Password:
>           Domain=[WORKGROUP] OS=[OpenVMS] Server=[Samba 3.0.28a]
> Receiving SMB: Server stopped responding
> tree connect failed: Call timed out: server did not respond after
> 20000 milliseconds
>
>   the SMBD process seems to hang up and the connection times out.
> Looking at the SMBD log file, it says -
>
> [2009/08/29 12:50:39, 1] SAMBA$SRC:[SOURCE.NSSWITCH]IDMAP.C;1:(377)
>
>   Initializing idmap domains
>
> [2009/08/29 12:50:39, 1] SAMBA$SRC:[SOURCE.NSSWITCH]IDMAP_TDB.C;1:
> (397)
>
>   idmap uid range missing or invalid
>
>   idmap will be unable to map foreign SIDs
>

Since you are mapping different users to a single user, you need to
provide a range of UIDS that SMBD can use to map users connecting to a
local user. This is required as Samba calls setuid/seteuid (from what
I remember when I was working on porting Samba to VMS few years back).
I do not remember the exact syntax of providing that range, please
check with the Samba documentation. From a defensive programming
perspective, you could file a bug with the logs so that it would not
crash when the details are not provided. Either it should use some
defaults or log error and continue or gracefully exit.

-dhruva



More information about the Info-vax mailing list