TNG --with-ldap: troubles (big)

Ignacio Coupeau icoupeau at unav.es
Tue Jan 4 17:42:03 GMT 2000


Luke Kenneth Casson Leighton wrote:
> > On the other hand, I'm testing TNG branch, but I have some troubles
> > loading the profiles... I going to check the Luke advise about
> > "samba-TNG: CVS update....".
> 
> *interested*.
> 

I'm testing... RH 2.2.10; LDAP 1.2.7 running wit debug 16, etc.
Compiling with --with-ldap
I think the LDAP is ignored at all... none of the 4 test binds any to
the smbd. So I can't test anymore because the smbpasswd ignores the
ldap... 

1. When the smbd starts, the ldap don't tell any: the smbd don't connect
at all.
2. The smbpasswd fails for add user:
> [root at bilbo samba]# bin/smbpasswd -a  icoupeau -D 256
> socket connect to /usr/local/etc/samba/var/locks/.msrpc/lsarpc failed
> msrpc_establish_connection: failed lsarpc)
> msrpc_use_add: connection failed
> lsa query info failed
> Can't setup password database vectors.
> -------------
Note: no log at smb or ldap

3. The smbpasswd fails for add an trusted account (also with any machine
account):
> [root at bilbo samba]# bin/smbpasswd -a -j BILBO$ -D 256
> socket connect to /usr/local/etc/samba/var/locks/.msrpc/lsarpc failed
> msrpc_establish_connection: failed lsarpc)
> msrpc_use_add: connection failed
> lsa query info failed
> Can't setup password database vectors
> -----
Note: no log at smb or ldap

4. The smbclient don't connect:
> [root at bilbo samba]# bin/smbclient "/\\bilbo\037148" -U 037148
> Added interface ip=159.237.12.42 bcast=159.237.12.255 nmask=255.255.255.0
> Password:
> session setup ok
> Domain=[CTI-SMB-DEV] OS=[Unix] Server=[Samba 2.1.0-prealpha]
> failed tcon_X
> session setup ok
> Domain=[CTI-SMB-DEV] OS=[Unix] Server=[Samba 2.1.0-prealpha]
> failed tcon_X
> 

As you can see below the smbd can't open
/usr/local/etc/samba/private/CTI-SMB-DEV.BILBO.mac because (i suppose)
the "smbpasswd -j ..." fails and don't exists.

The log ( debug 3 ):

> tail -f /usr/local/etc/samba/logs
> [2000/01/04 17:05:13, 2] smbd/server.c:main(740)
>   Changed root to /
> [2000/01/04 17:05:13, 3] smbd/oplock.c:open_oplock_ipc(73)
>   open_oplock_ipc: opening loopback UDP socket.
> [2000/01/04 17:05:13, 3] lib/util_sock.c:open_socket_in(688)
>   bind succeeded on port 0
> [2000/01/04 17:05:13, 3] smbd/oplock.c:open_oplock_ipc(101)
>   open_oplock ipc: pid = 4614, global_oplock_port = 1076
> [2000/01/04 17:05:13, 3] smbd/process.c:smbd_process(760)
>   priming nmbd
> [2000/01/04 17:05:13, 3] lib/util_sock.c:send_one_packet(617)
>   sending a packet of len 1 to (127.0.0.1) on port 137 of type DGRAM
> [2000/01/04 17:05:13, 3] smbd/process.c:process_smb(569)
>   Transaction 0 of length 76
> [2000/01/04 17:05:13, 2] smbd/reply.c:reply_special(148)
>   netbios connect: name1=BILBO            name2=BILBO          
> [2000/01/04 17:05:13, 3] lib/username.c:build_passwd_hash_table(83)
>   Building passwd hash table
> [2000/01/04 17:05:13, 3] lib/username.c:build_passwd_hash_table(95)
>   Building passwd hash table for the first time
> [2000/01/04 17:05:13, 3] smbd/process.c:process_smb(569)
>   Transaction 1 of length 168
> [2000/01/04 17:05:13, 3] smbd/process.c:switch_message(402)
>   switch message SMBnegprot (pid 4614)
> [2000/01/04 17:05:13, 3] smbd/negprot.c:reply_negprot(347)
>   Requested protocol [PC NETWORK PROGRAM 1.0]
> [2000/01/04 17:05:13, 3] smbd/negprot.c:reply_negprot(347)
>   Requested protocol [MICROSOFT NETWORKS 1.03]
> [2000/01/04 17:05:13, 3] smbd/negprot.c:reply_negprot(347)
>   Requested protocol [MICROSOFT NETWORKS 3.0]
> [2000/01/04 17:05:13, 3] smbd/negprot.c:reply_negprot(347)
>   Requested protocol [LANMAN1.0]
> [2000/01/04 17:05:13, 3] smbd/negprot.c:reply_negprot(347)
>   Requested protocol [LM1.2X002]
> [2000/01/04 17:05:13, 3] smbd/negprot.c:reply_negprot(347)
>   Requested protocol [Samba]
> [2000/01/04 17:05:13, 3] smbd/negprot.c:reply_negprot(424)
>   Selected protocol NT LANMAN 1.0
> [2000/01/04 17:05:13, 3] smbd/process.c:process_smb(569)
>   Transaction 2 of length 144
> [2000/01/04 17:05:13, 3] smbd/process.c:switch_message(402)
>   switch message SMBsesssetupX (pid 4614)
> [2000/01/04 17:05:13, 3] smbd/reply.c:reply_sesssetup_and_X(597)
>   Domain=[CTI-SMB-DEV]  NativeOS=[Unix] NativeLanMan=[]
> [2000/01/04 17:05:13, 3] smbd/reply.c:reply_sesssetup_and_X(600)
>   sesssetupX:name=[037148]
> [2000/01/04 17:05:13, 1] smbd/reply.c:map_nt_and_unix_username(97)
>   map_nt_and_unix_username: NT->Unix map DISABLED
> [2000/01/04 17:05:13, 0] passdb/smbpassfile.c:trust_password_lock(78)
>   trust_password_lock: cannot open file /usr/local/etc/samba/private/CTI-SMB-DEV.BILBO.mac - Error was No such file or directory.
> [2000/01/04 17:05:13, 0] passdb/smbpassfile.c:trust_get_passwd(239)
>   trust_get_passwd: unable to open the trust account password file for trust BILBO in domain CTI-SMB-DEV.
> [2000/01/04 17:05:13, 3] lib/util.c:get_unixgroups(2413)
>   037148 is in 1 groups: 201
> [2000/01/04 17:05:13, 3] lib/vuser.c:register_vuid(177)
>   uid 17603 registered to name 037148
> [2000/01/04 17:05:13, 3] lib/vuser.c:register_vuid(179)
>   Clearing default real name
> [2000/01/04 17:05:13, 3] lib/vuser.c:create_vuid(118)
>   uid 17603 registered to name 037148
> [2000/01/04 17:05:13, 3] smbd/process.c:process_smb(569)
>   Transaction 3 of length 69
> [2000/01/04 17:05:13, 3] smbd/process.c:switch_message(402)
>   switch message SMBtconX (pid 4614)
> [2000/01/04 17:05:13, 1] smbd/reply.c:map_nt_and_unix_username(97)
>   map_nt_and_unix_username: NT->Unix map DISABLED
> [2000/01/04 17:05:13, 3] smbd/service.c:find_service(108)
>   checking for home directory 037148 gave /
> [2000/01/04 17:05:13, 3] smbd/service.c:find_service(185)
>   find_service() failed to find service 037148
> [2000/01/04 17:05:13, 0] smbd/service.c:make_connection(218)
>   bilbo (159.237.12.42) couldn't find service 037148
> [2000/01/04 17:05:13, 3] smbd/error.c:error_packet(138)
>   error packet at line 215 cmd=117 (SMBtconX) eclass=2 ecode=6
> [2000/01/04 17:05:13, 3] smbd/process.c:process_smb(569)
>   Transaction 4 of length 76
> [2000/01/04 17:05:13, 2] smbd/reply.c:reply_special(148)
>   netbios connect: name1=*SMBSERVER       name2=BILBO          
> [2000/01/04 17:05:13, 3] smbd/process.c:process_smb(569)
>   Transaction 5 of length 168
> [2000/01/04 17:05:13, 3] smbd/process.c:switch_message(402)
>   switch message SMBnegprot (pid 4614)
> [2000/01/04 17:05:13, 3] smbd/negprot.c:reply_negprot(347)
>   Requested protocol [PC NETWORK PROGRAM 1.0]
> [2000/01/04 17:05:13, 3] smbd/negprot.c:reply_negprot(347)
>   Requested protocol [MICROSOFT NETWORKS 1.03]
..
>   Requested protocol [MICROSOFT NETWORKS 3.0]
...
>   Requested protocol [LANMAN1.0]
..
>   Requested protocol [LM1.2X002]
..
>   Requested protocol [Samba]
..
>   Selected protocol NT LANMAN 1.0
> [2000/01/04 17:05:13, 3] smbd/process.c:process_smb(569)
>   Transaction 6 of length 144
> [2000/01/04 17:05:13, 3] smbd/process.c:switch_message(402)
>   switch message SMBsesssetupX (pid 4614)
> [2000/01/04 17:05:13, 3] smbd/reply.c:reply_sesssetup_and_X(597)
>   Domain=[CTI-SMB-DEV]  NativeOS=[Unix] NativeLanMan=[]
> [2000/01/04 17:05:13, 3] smbd/reply.c:reply_sesssetup_and_X(600)
>   sesssetupX:name=[037148]
> [2000/01/04 17:05:13, 1] smbd/reply.c:map_nt_and_unix_username(97)
>   map_nt_and_unix_username: NT->Unix map DISABLED
> [2000/01/04 17:05:13, 0] passdb/smbpassfile.c:trust_password_lock(78)
>   trust_password_lock: cannot open file /usr/local/etc/samba/private/CTI-SMB-DEV.BILBO.mac - Error was No such file or directory.
> [2000/01/04 17:05:13, 0] passdb/smbpassfile.c:trust_get_passwd(239)
>   trust_get_passwd: unable to open the trust account password file for trust BILBO in domain CTI-SMB-DEV.
> [2000/01/04 17:05:13, 3] lib/util.c:get_unixgroups(2413)
>   037148 is in 1 groups: 201

Any idea?

-- 
____________________________________________________
Ignacio Coupeau, Ph.D.     e-mail: icoupeau at unav.es
CTI, Director              fax:    948 425619
University of Navarra      voice:  948 425600
Pamplona, SPAIN            http://www.unav.es/cti/


More information about the samba-technical mailing list