[Samba] Samba - User Authentication

Board, Clint cboard at ufsonline.com
Tue Apr 29 21:16:49 GMT 2003


Leonard,
Did you go though the PDF document that John sent you the link to a couple
days ago?

http://samba.org/~jht/NT4migration/Samba-HOWTO-Collection.pdf

I finally worked through getting this setup on my NT4.0 domain and have it
working great. There are a couple things that will very from the
documentation in the PDF. If you have a test environment, i can wall you
through the procedures that i used to set it up.

-----Original Message-----
From: Leonardo Rodríguez [mailto:leonardorleon at cantv.net]
Sent: Tuesday, April 29, 2003 4:11 PM
To: samba at lists.samba.org; radkins at impelind.com
Subject: [Samba] Samba - User Authentication 


Hi Robert and List,

As you told me I upgrated to Samba 2.2.5 because I'm doing the test with a
machine which has RedHat 8.0 and this RedHat version comes with it....
Anyway.....

So I made the procedure step by step but I haven't found how to make my
Windows 2000 users (PDC) can access the Linux shared folder and this is
what I've done:

My smb.conf looks like this:

[global]

   workgroup = MCSE
   server string = Samba Server Laboratorio CUS
   netbios name = redhatcus
   log file = /var/log/samba/%m.log
   max log size = 0
   security = domain
   password server = win2k1
   encrypt passwords = yes
   unix password sync = Yes
   passwd program = /usr/bin/passwd %u
   passwd chat = *New*UNIX*password* %n\n *Retype*new*UNIX*password* %n\n
*passwd:*all*authentication*tokens*updated*successfully*
   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
   dns proxy = no

[homes]
   comment = Home Directories
   browseable = no
   writable = yes
   valid users = %S
   create mode = 0664
   directory mode = 0775

[Test]
   comment = Shared Folder
   path = /Test
   writable = yes
   printable = no

-----------------------------------

After this I added the linux machine with its netbios name (redhatcus) in
the Windows 2000 machine (PDC) then I returned to Linux and I ran this
command:

    smbpasswd -r MCSE -j win2k1

It joined without any problem and I executed this command with different
users (users registered in the PDC):

[root at redhatcus /]# smbclient -L redhatcus -U administrator
added interface ip=9.177.4.156 bcast=9.255.255.255 nmask=255.0.0.0
Password:
Domain=[MCSE] OS=[Unix] Server=[Samba 2.2.5]

        Sharename      Type      Comment
        ---------      ----      -------
        Test           Disk      Shared Folder
        IPC$           IPC       IPC Service (Samba Server Laboratorio CUS)
        ADMIN$         Disk      IPC Service (Samba Server Laboratorio CUS)

        Server               Comment
        ---------            -------
        REDHATCUS            Samba Server Laboratorio CUS

        Workgroup            Master
        ---------            -------
        MCSE                 REDHATCUS
[root at redhatcus /]#

But when I try to access the Test folder from Windows 2000 (PDC) using the
Windows users it fails... it says incorrect password or unknown username.

It makes me think that it's not an upgrade problem and it's a configuration
problem instead but I'm not quite sure about this so I wrote this 'cause
you are the experts on samba and I really need your help......

Did I miss something in the smb.conf file?

Do I have to do something else with my smbpasswd file or my smbusers file?
or maybe my passwd command or my smbadduser command?

The matter of all this is that I wouldn't like to have to create each one
of the Windows users in the Linux machine... it wouldn't be reasonable...

So I'll be here waiting for your help :-)

Thanks in advance

Leonardo

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


More information about the samba mailing list