]> git.sur5r.net Git - openldap/commitdiff
Permit access defined by uniqueMember and not only DN-valued
authorJulio Sánchez Fernández <jsanchez@openldap.org>
Mon, 9 Oct 2000 19:09:22 +0000 (19:09 +0000)
committerJulio Sánchez Fernández <jsanchez@openldap.org>
Mon, 9 Oct 2000 19:09:22 +0000 (19:09 +0000)
attributes.  This allows using groupOfUniqueNames for
access control.
Fix small typo in MRA definition.

servers/slapd/aclparse.c
servers/slapd/slap.h

index d3b88bc6ec6b3b0be789085e7ddb4b0dddb014c7..1784fbbcb42b689efb54d381345b650ad1ea4a31 100644 (file)
@@ -508,7 +508,9 @@ parse_acl(
                                        }
 
                                        if( !is_at_syntax( b->a_group_at->ad_type,
-                                               SLAPD_DN_SYNTAX ) )
+                                               SLAPD_DN_SYNTAX ) &&
+                                           !is_at_syntax( b->a_group_at->ad_type,
+                                               SLAPD_NAMEUID_SYNTAX ) )
                                        {
                                                fprintf( stderr,
                                                        "%s: line %d: group \"%s\": inappropriate syntax: %s\n",
index e4cad6f12912d37da8bce0d47828e1c0f2b5ceaf..cde23a7d893a923962413268d2a1a80d4e8fdc25 100644 (file)
@@ -103,6 +103,7 @@ LDAP_BEGIN_DECL
 
 /* must match in schema_init.c */
 #define SLAPD_DN_SYNTAX                        "1.3.6.1.4.1.1466.115.121.1.12"
+#define SLAPD_NAMEUID_SYNTAX           "1.3.6.1.4.1.1466.115.121.1.34"
 #define SLAPD_GROUP_ATTR               "member"
 #define SLAPD_GROUP_CLASS              "groupOfNames"
 #define SLAPD_ROLE_ATTR                        "roleOccupant"
@@ -527,7 +528,7 @@ typedef struct slap_filter {
 #define f_mr_rule              f_un.f_un_mra->ma_rule
 #define f_mr_desc              f_un.f_un_mra->ma_desc
 #define f_mr_value             f_un.f_un_mra->ma_value
-#define        f_mr_dnaddrs    f_un.f_un_mra->ma_dnattrs
+#define        f_mr_dnattrs    f_un.f_un_mra->ma_dnattrs
 
                /* and, or, not */
                struct slap_filter *f_un_complex;