ipa-kdb: read SID blacklist from LDAP

SIDs in incoming MS-PAC were checked and filtered with a fixed list of
well-known SIDs. Allow reading the SID blacklist from LDAP
(ipaNTSIDBlacklistIncoming and ipaNTSIDBlacklistOutgoing) and add the list
to mspac adtrust structure. Use the hardcoded SID list only if the LDAP
SID list is not configured.

LIMITATION: SID blacklist list is not used yet.

https://fedorahosted.org/freeipa/ticket/3289
This commit is contained in:
Martin Kosek
2013-02-07 14:52:35 +01:00
parent d4d19ff423
commit 827ea50566
3 changed files with 136 additions and 54 deletions

32
util/ipa_mspac.h Normal file
View File

@@ -0,0 +1,32 @@
#ifndef __IPA_MSPAC_H_
#define __IPA_MSPAC_H_
char *ipa_mspac_well_known_sids[] = {
"S-1-0",
"S-1-1",
"S-1-2",
"S-1-3",
"S-1-5-1",
"S-1-5-2",
"S-1-5-3",
"S-1-5-4",
"S-1-5-5",
"S-1-5-6",
"S-1-5-7",
"S-1-5-8",
"S-1-5-9",
"S-1-5-10",
"S-1-5-11",
"S-1-5-12",
"S-1-5-13",
"S-1-5-14",
"S-1-5-15",
"S-1-5-16",
"S-1-5-17",
"S-1-5-18",
"S-1-5-19",
"S-1-5-20",
NULL
};
#endif /* __IPA_MSPAC_H_ */