Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Nov 2004 13:00:40 GMT
From:      Ivo Roumenov Tonev <ivo@tonev.pro.br>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/73541: samba3+openldap core dump
Message-ID:  <200411051300.iA5D0eqr097398@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/73541; it has been noted by GNATS.

From: Ivo Roumenov Tonev <ivo@tonev.pro.br>
To: Volker Stolz <stolz@i2.informatik.rwth-aachen.de>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: ports/73541: samba3+openldap core dump
Date: Fri,  5 Nov 2004 10:52:01 -0200

 tnx.
 
 the ldap database was setup correctly, because it works ok with the previous
 versions
 
 --
 Ivo Roumenov Tonev
 ICQ: 14854601
 +55 61 9224-9856
 
 "One OS to rule them all, One OS to find them,
 One OS to bring them all and in the darkness bind them
 In the Land of Redmond, where the Shadows lie."
                      -- adapted from J.R.R. Tolkien
 
 
 Citando Volker Stolz <stolz@i2.informatik.rwth-aachen.de>:
 
 > Am 05. Nov 2004 um 13:06 CET schrieb Ivo Roumenov Tonev:
 > > samba3 was recompiled & work/samba-3.0.7/source/bin/smbpasswd copied to
 > > /usr/local/bin/smbpasswd
 > >
 > > #0  0x28393c75 in strdup () from /lib/libc.so.5
 > > (gdb) bt
 > > #0  0x28393c75 in strdup () from /lib/libc.so.5
 > > #1  0x080b5229 in append_attr ()
 > > #2  0x080b5290 in ldapsam_getsampwnam ()
 > > #3  0x080ac921 in context_getsampwnam ()
 > > #4  0x080ae421 in pdb_getsampwnam ()
 > > #5  0x080a8551 in local_password_change ()
 > > #6  0x08068cde in password_change ()
 > > #7  0x080691db in process_root ()
 > > #8  0x08069592 in main ()
 > > #9  0x080685b2 in _start ()
 > > (gdb)
 > >
 > > and now ?????
 >
 > It looks like in pdb_ldap.c this fragment might be NULL:
 >
 > static NTSTATUS ldapsam_getsampwnam(struct pdb_methods *my_methods,
 > SAM_ACCOUNT *user, const char *sname)
 > {
 >         NTSTATUS ret = NT_STATUS_UNSUCCESSFUL;
 >         struct ldapsam_privates *ldap_state = (struct ldapsam_privates
 > *)my_methods->private_data;
 >         LDAPMessage *result = NULL;
 >         LDAPMessage *entry = NULL;
 >         int count;
 >         char ** attr_list;
 >         int rc;
 >
 >         attr_list = get_userattr_list( ldap_state->schema_ver );
 >         append_attr(&attr_list,
 > get_userattr_key2string(ldap_state->schema_ver,LDAP_ATTR_MOD_TIMESTAMP));
 >
 > **************************************************************************
 >
 > I don't know why. The code should really contain an assertion and fail
 > gracefully if get_userattr_key2string returns NULL.
 > OTOH, it might be a LDAP-problem (either bug or you didn't setup the database
 > correctly).
 >
 > On a brighter note, this isn't really a FreeBSD-specific issue, I'd guess #)
 > Can you please post this problem (feel free to include my interpretation!) to
 > the
 > Samba-bugtracker? Don't forget to include the *full* gdb output. I'm going to
 > suspend
 > this PR until we have feedback from the Samba crowd.
 >
 > Cheers,
 >   Volker
 > --
 > http://www-i2.informatik.rwth-aachen.de/stolz/ *** PGP *** S/MIME
 >
 
 
 ----------------------------------------------------------------
 This message was sent using IMP, the Internet Messaging Program.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200411051300.iA5D0eqr097398>