[Samba] HELP -unification of logon process

Paulo Gonçalves pgoncalves at ci.uminho.pt
Thu Feb 7 09:12:11 GMT 2002

i trieing to unificate the logon process between  windows and linux.

i have a domain in wk2, and i need to have linux ( RedHat 7.2 ) workstations
working in the same domain. My problem is the process of unifieing the logon
,i.e, when a user account is open in de active directory, that user is then
alowed to log in the linux witout having to open one account in the linux
For that i triein to use winbind.
i've followed the instructions on the manual, but when i triein to join the
domain i get 

/usr/local/samba/bin/smbpasswd -j CIB -r dccl0 -U pgoncalves
tdb((null)): tdb_open_ex: could not open file
/usr/local/samba/var/locks/unexpected.tdb: No such file or directory
tdb((null)): tdb_open_ex: could not open file
/usr/local/samba/var/locks/unexpected.tdb: No such file or directory
tdb((null)): tdb_open_ex: could not open file
/usr/local/samba/var/locks/unexpected.tdb: No such file or directory
.Joined domain CIB

altrugth the messafe is Joined domain CIB, i have some error messages.
after this point i don't have the results that is suposted to have.

 TIP - in the proccess of compiling the source when do the ' make'  i have a
warning mesage:

Compiling libsmb/clistr.c
libsmb/clistr.c: In function `clistr_push':
libsmb/clistr.c:76: warning: passing arg 1 of pointer to function discards
quali fiers from pointer target type

--------------- instructions -------
root# autoconf
root# make clean
root# rm config.cache
root# ./configure --with-winbind
root# make
root# make install

root# cp ../samba/source/nsswitch/libnss_winbind.so /lib

root# ln -s /lib/libnss_winbind.so /lib/libnss_winbind.so.2

 as root you need to edit /etc/nsswitch.conf to allow user and group entries
to be visible from the winbindd daemon. My /etc/nsswitch.conf file look like
this after editing:
        passwd:     files winbind
        shadow:     files 
        group:      files winbind

root# /sbin/ldconfig -v | grep winbind

This makes libnss_winbind available to winbindd and echos back a check to

Configure smb.conf

     # separate domain and username with '+', like DOMAIN+username
     winbind separator = +
     # use uids from 10000 to 20000 for domain users
     winbind uid = 10000-20000
     # use gids from 10000 to 20000 for domain groups
     winbind gid = 10000-20000
     # allow enumeration of winbind users and groups
     winbind enum users = yes
     winbind enum groups = yes
     # give winbind users a real shell (only needed if they have telnet
     template homedir = /home/winnt/%D/%U
     template shell = /bin/bash

Join the SAMBA server to the PDC domain

Enter the following command to make the SAMBA server join the PDC domain,
where DOMAIN is the name of your Windows domain and Administrator is a
domain user who has administrative privileges in the domain.

root# /usr/local/samba/bin/smbpasswd -j DOMAIN -r PDC -U Administrator

The proper response to the command should be: "Joined the domain DOMAIN"
where DOMAIN is your DOMAIN name.


More information about the samba mailing list