Unable To Connect To SAMBA Shares

Atkinson, Robert RATKINSON at tbs-ltd.co.uk
Tue Feb 24 13:39:51 GMT 2009


Paul, tried your suggestions but they didn't work. However, I noticed that
whatever username I tried, it always mapped onto SYSTEM (locally logged in
account).

Then, I remembered the problem with USERNAME.MAP needing to be STREAM. Once I
fixed that, everything was fine.

Cheers for the help, Rob.

-----Original Message-----
From: Nunez, Paul [mailto:Paul.Nunez at hp.com] 
Sent: 24 February 2009 13:05
To: Atkinson, Robert; samba-vms at samba.org
Cc: Cascarino, Mark; Hebron, Martin
Subject: RE: Unable To Connect To SAMBA Shares

Hi Robert,

You didn't provide enough info.  What user are you attempting to connect as?
Does that domain user account have an OpenVMS account - if not, it'll need
one.  Otherwise, you can only connect as Guest (but that would require some
smb.conf changes).  

Every user who needs to connect to the CIFS server needs an OpenVMS account.
You can either create one yourself, let WINBIND do it "on-the-fly" by adding
the "idmap uid" and "idmap gid" parameters with valid range values in
smb.conf, or use the "add user script" (smb.conf parameter) functionality.

To further troubleshoot, add "log level = 10" to smb.conf, duplicate the
problem, and then check the client log in samba$root:[var] for errors.
Sometimes it's easy to find them by doing:

$ search/page <log-file> nt_status, fail, error

Another thing to try - map the drive from the server itself using smbclient.
If that works, but you still get prompted for username/password when mapping
from a Windows client, then the security policies on the Windows client may
be a factor:


$ smbclient \\<servername\robs --user <domain-user-name>
Password:

If you get to a smb>\ prompt, it worked.  Otherwise, hit your up arrow, and
add to the command -d10 to get debug level 10 messages...

HTH,

Paul

-----Original Message-----
From: samba-vms-bounces+paul.nunez=hp.com at lists.samba.org
[mailto:samba-vms-bounces+paul.nunez=hp.com at lists.samba.org] On Behalf Of
Atkinson, Robert
Sent: Tuesday, February 24, 2009 6:05 AM
To: samba-vms at samba.org
Cc: Cascarino, Mark; Hebron, Martin
Subject: Unable To Connect To SAMBA Shares

I've installed SAMBA 1.1 and configured the same as our test server (which
works fine). 

When I try to connect to the share, I just keep getting prompted for a
username and password. I've tried various combinations, but no joy.


I'm happy the server is a member of the domain :-

BETA_ROB$$$ net rpc join --user=coadmin       --server=codc-1
Password:
         Joined domain UK.
BETA_ROB$$$


All the log file says is :-

[2009/02/24 10:56: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

[2009/02/24 10:56:39, 0] SAMBA$SRC:[SOURCE.NSSWITCH]IDMAP.C;1:(749)

  ERROR: Initialization failed for alloc backend, deferred!



Config is :-

[global]
        workgroup = UK
        server string = Samba %v running on %h (OpenVMS)
        security = DOMAIN
        username map = /samba$root/lib/username.map
        log file = /samba$root/var/log_%h.%m
        load printers = No
        os level = 65
        preferred master = No
        domain master = No
        admin users = cifsadmin
        create mask = 0755

[homes]
        comment = Home Directories
        read only = No
        create mask = 0750
        browseable = No
        vms ods5 volume = No

[robs]
        comment = Test Directory
        path = ops$data:[robert]
        read only = No
        create mask = 0750
        vms ods5 volume = No



Any ideas?

Rob.

*****************************************************************************
******
Any opinions expressed in email are those of the individual and not
necessarily those of the company. This email and any files transmitted with
it are confidential and solely for the use of the intended recipient 
or entity to whom they are addressed. It may contain material protected by
attorney-client privilege. If you are not the intended recipient, or a person
responsible for delivering to the intended recipient, be advised that you
have received this email in error and that any use is strictly prohibited.

Random House Group + 44 (0) 20 7840 8400
http://www.randomhouse.co.uk
http://www.booksattransworld.co.uk 
http://www.kidsatrandomhouse.co.uk
Generic email address - enquiries at randomhouse.co.uk

Name & Registered Office:
THE RANDOM HOUSE GROUP LIMITED
20 VAUXHALL BRIDGE ROAD
LONDON
SW1V 2SA
Random House Group Ltd is registered in the United Kingdom with company No.
00954009, VAT number 102838980
*****************************************************************************
******

PLEASE READ THIS IMPORTANT ETIQUETTE MESSAGE BEFORE POSTING:

http://www.catb.org/~esr/faqs/smart-questions.html


More information about the samba-vms mailing list