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 21:02:21 +0000 (13:02 -0800)
commit6d59be1e6d83d4faf145c9b6d574bab9f2acb36a
treed438918428c3a54df81d9dffe930be4761797f8f
parent9a7900fb38b9690bf51ab638c0f0629f2557b870
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()
source3/include/proto.h
source3/libads/ldap.c
source3/winbindd/winbindd_ads.c