Author: nkinder
Update of /cvs/dirsec/ldapserver/ldap/servers/slapd
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv11731/ldap/servers/slapd
Modified Files:
schema.c
Log Message:
Resolves: 480384
Summary: Allow attribute aliases to be used as SUP attribute in attributetype
definitions.
Index: schema.c
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/servers/slapd/schema.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- schema.c 4 Dec 2008 22:33:29 -0000 1.18
+++ schema.c 19 Jan 2009 21:27:24 -0000 1.19
@@ -3111,7 +3111,16 @@
if(asi->asi_name != NULL) {
if (strcasecmp (asi->asi_name, aew->sup ) == 0) {
aew->rc=0;
- }
+ } else if (asi->asi_aliases) {
+ int i = 0;
+
+ /* Loop through aliases to see if any match */
+ for (i=0; asi->asi_aliases[i] != NULL; i++) {
+ if (strcasecmp (asi->asi_aliases[i], aew->sup ) == 0) {
+ aew->rc=0;
+ }
+ }
+ }
}
}
}