[Samba] Samba 3.0.24 handling LDAP responses incorrectly
Volker Lendecke
Volker.Lendecke at SerNet.DE
Mon Apr 7 18:27:37 GMT 2008
On Mon, Apr 07, 2008 at 02:03:32PM -0400, Ryan Steele wrote:
>
> #if defined(LDAP_CONSTRAINT_VIOLATION)
> if (rc == LDAP_CONSTRAINT_VIOLATION)
> return NT_STATUS_PASSWORD_RESTRICTION;
> #endif
>
> ...to pdb_ldap.c didn't seem to change the behavior at all. I suspect
> it's because LDAP_CONSTRAINT_VIOLATION isn't defined anywhere in my
> 3.0.24 source, though I could certainly be wrong. I'm grabbing the
> latest source from git to see where that's defined, but if anybody wants
> to head me off at the pass with the information, it's certainly welcome.
If your LDAP libs don't have that define, you might try to
use the value from OpenLDAP:
#define LDAP_CONSTRAINT_VIOLATION 0x13
Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba/attachments/20080407/13e99490/attachment.bin
More information about the samba
mailing list