ports/73541: samba3+openldap core dump
Volker Stolz
stolz at i2.informatik.rwth-aachen.de
Fri Nov 5 12:50:26 UTC 2004
The following reply was made to PR ports/73541; it has been noted by GNATS.
From: Volker Stolz <stolz at i2.informatik.rwth-aachen.de>
To: Ivo Roumenov Tonev <ivo at tonev.pro.br>
Cc: freebsd-gnats-submit at freebsd.org
Subject: Re: ports/73541: samba3+openldap core dump
Date: Fri, 5 Nov 2004 13:43:52 +0100
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
More information about the freebsd-ports-bugs
mailing list