Fix extended DN parse error when AD object does not have a SID.
authorSteven Danneman <steven.danneman@isilon.com>
Sat, 15 Nov 2008 21:07:15 +0000 (13:07 -0800)
committerSteven Danneman <steven.danneman@isilon.com>
Tue, 18 Nov 2008 22:40:07 +0000 (14:40 -0800)
commit48959de11bdeea7f114d8019349b37ada1df5aef
tree24d303636c1a975f73ffb226af2b4cfa88bb4f88
parent8a9df932bfcae6bb9bd60914e9c74d13b3dfcd30
Fix extended DN parse error when AD object does not have a SID.

Some AD objects, like Exchange Public Folders, can be members of Security
Groups but do not have a SID attribute.  This patch adds more granular return
errors to ads_get_sid_from_extended_dn().  Callers can now determine if a parse
error occured because of bad input, or the DN was valid but contained no SID.

I updated all callers to ignore SIDless objects when appropriate.

Also did some cleanup to the out paths of lookup_usergroups_memberof()
source/libads/ldap.c
source/winbindd/winbindd_ads.c