Luís Miguel Silva
2005-Apr-03 19:26 UTC
[Samba] ldap crashes right after samba updates password
Hello all, This week i successfully managed to create a openldap server/domain using openldap and samba 3.0.11. Alltough everything is working correctly, when i change the password on the server via the "smbpasswd" command (the one which comes by default with samba) or by a windows machine, my openldap crashes. Here is a output of a debug session of openldap: ldap_read: want=8, got=8 0000: 30 4b 02 01 03 77 46 80 0K...wF. ldap_read: want=69, got=69 0000: 17 31 2e 33 2e 36 2e 31 2e 34 2e 31 2e 34 32 30 .1.3.6.1.4.1.420 0010: 33 2e 31 2e 31 31 2e 31 81 2b 30 29 80 21 75 69 3.1.11.1.+0).!ui 0020: 64 3d 6c 6d 73 2c 6f 75 3d 55 73 65 72 73 2c 64 d=lms,ou=Users,d 0030: 63 3d 69 73 70 67 61 79 61 2c 64 63 3d 70 74 82 c=ispgaya,dc=pt. 0040: 04 78 70 74 6f .xpto ber_get_next: tag 0x30 len 75 contents: ber_dump: buf=0x08141d80 ptr=0x08141d80 end=0x08141dcb len=75 0000: 02 01 03 77 46 80 17 31 2e 33 2e 36 2e 31 2e 34 ...wF..1.3.6.1.4 0010: 2e 31 2e 34 32 30 33 2e 31 2e 31 31 2e 31 81 2b .1.4203.1.11.1.+ 0020: 30 29 80 21 75 69 64 3d 6c 6d 73 2c 6f 75 3d 55 0).!uid=lms,ou=U 0030: 73 65 72 73 2c 64 63 3d 69 73 70 67 61 79 61 2c sers,dc=ispgaya, 0040: 64 63 3d 70 74 82 04 78 70 74 6f dc=pt..xpto ber_get_next ldap_read: want=8 error=Resource temporarily unavailable ber_get_next on fd 12 failed errno=11 (Resource temporarily unavailable) do_extended ber_scanf fmt ({m) ber: ber_dump: buf=0x08141d80 ptr=0x08141d83 end=0x08141dcb len=72 daemon: select: listen=6 active_threads=2 tvp=NULL 0000: 77 46 80 17 31 2e 33 2e 36 2e 31 2e 34 2e 31 2e wF..1.3.6.1.4.1. 0010: 34 32 30 33 2e 31 2e 31 31 2e 31 81 2b 30 29 80 4203.1.11.1.+0). 0020: 21 75 69 64 3d 6c 6d 73 2c 6f 75 3d 55 73 65 72 !uid=lms,ou=User 0030: 73 2c 64 63 3d 69 73 70 67 61 79 61 2c 64 63 3d s,dc=ispgaya,dc 0040: 70 74 82 04 78 70 74 6f pt..xpto ber_scanf fmt (m) ber: ber_dump: buf=0x08141d80 ptr=0x08141d9e end=0x08141dcb len=45 0000: 00 2b 30 29 80 21 75 69 64 3d 6c 6d 73 2c 6f 75 .+0).!uid=lms,ou 0010: 3d 55 73 65 72 73 2c 64 63 3d 69 73 70 67 61 79 =Users,dc=ispgay 0020: 61 2c 64 63 3d 70 74 82 04 78 70 74 6f a,dc=pt..xpto do_extended: oid=1.3.6.1.4.1.4203.1.11.1 ber_scanf fmt ({) ber: ber_dump: buf=0x08141da0 ptr=0x08141da0 end=0x08141dcb len=43 0000: 30 29 80 21 75 69 64 3d 6c 6d 73 2c 6f 75 3d 55 0).!uid=lms,ou=U 0010: 73 65 72 73 2c 64 63 3d 69 73 70 67 61 79 61 2c sers,dc=ispgaya, 0020: 64 63 3d 70 74 82 04 78 70 74 6f dc=pt..xpto ber_scanf fmt (m) ber: ber_dump: buf=0x08141da0 ptr=0x08141da2 end=0x08141dcb len=41 0000: 80 21 75 69 64 3d 6c 6d 73 2c 6f 75 3d 55 73 65 .!uid=lms,ou=Use 0010: 72 73 2c 64 63 3d 69 73 70 67 61 79 61 2c 64 63 rs,dc=ispgaya,dc 0020: 3d 70 74 82 04 78 70 74 6f =pt..xpto ber_scanf fmt (m) ber: ber_dump: buf=0x08141da0 ptr=0x08141dc5 end=0x08141dcb len=6 0000: 00 04 78 70 74 6f ..xpto ==> ldbm_back_exop_passwd: "uid=lms,ou=Users,dc=ispgaya,dc=pt" Segmentation fault I was trying to set "xpto" as my password. The "funny" thing is that: a) the password gets changed all the same (allthough slapd crashes) b) i can change the password without any problem via the smbldap-passwd (from idealx). Can anybody help me with this? Im using trustix 2.2 with: root@ad /# rpm -qa | grep samba samba-common-3.0.11-2tr samba-3.0.11-2tr samba-client-3.0.11-2tr root@ad /# rpm -qa | grep ldap openldap-2.1.30-2tr openldap-libs-2.1.30-2tr nss_ldap-220-1tr openldap-devel-2.1.30-2tr ldapclients-common-175-1tr openldap-servers-2.1.30-2tr openldap-utils-2.1.30-2tr root@ad /# PS: does anybody know of a administration interface which as the hability to encode the sambaLMPassword and the sambaNTPassword directly onto openldap? Thanks in advance, +---------------------------------------- | Lu?s Miguel Ferreira da Silva | Network Administrator @ISPGaya | Instituto Superior Polit?cnico Gaya | Rua Ant?nio Rodrigues da Rocha, 291/341 | Sto. Ov?dio ? 4400-025 V. N. de Gaia | Tel: +351 223745730/3/5 | GSM: +351 912671471 +351 936371253 +---------------------------------------- ---------------------------------------------------------------- Este email foi enviado via o webmail do ISPGaya Instituto Superior Polit?cnico Gaya
On Sun, 2005-04-03 at 20:26 +0100, Lu?s Miguel Silva wrote:> Hello all, > > This week i successfully managed to create a openldap server/domain using > openldap and samba 3.0.11. > > Alltough everything is working correctly, when i change the password on the > server via the "smbpasswd" command (the one which comes by default with samba) > or by a windows machine, my openldap crashes. > > Here is a output of a debug session of openldap:> I was trying to set "xpto" as my password. > > The "funny" thing is that: > a) the password gets changed all the same (allthough slapd crashes) > b) i can change the password without any problem via the smbldap-passwd (from > idealx). > > Can anybody help me with this?> > PS: does anybody know of a administration interface which as the hability to > encode the sambaLMPassword and the sambaNTPassword directly onto openldap?---- webmin lam directory administrator Craig