]> git.sur5r.net Git - openldap/commitdiff
Update ACL field names and usage statement to match -devel post
authorKurt Zeilenga <kurt@openldap.org>
Thu, 22 Jul 1999 00:50:11 +0000 (00:50 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 22 Jul 1999 00:50:11 +0000 (00:50 +0000)
servers/slapd/acl.c
servers/slapd/aclparse.c
servers/slapd/slap.h

index cd3dad0018bc84f78df65780842e6240fb71b932..e632c1a9f69260e50cf22b01ece5645369850ccc 100644 (file)
@@ -275,12 +275,12 @@ acl_access_allowed(
                        }
                }
 
-               if ( b->a_url_pat != NULL ) {
-                       Debug( LDAP_DEBUG_ARGS, "<= check a_url_pat: %s\n",
-                               b->a_url_pat, 0, 0 );
+               if ( b->a_sockurl_pat != NULL ) {
+                       Debug( LDAP_DEBUG_ARGS, "<= check a_sockurl_pat: %s\n",
+                               b->a_sockurl_pat, 0, 0 );
 
-                       if ( strcmp( b->a_url_pat, ".*" ) != 0 &&
-                               !regex_matches( b->a_url_pat, conn->c_listener_url,
+                       if ( strcmp( b->a_sockurl_pat, ".*" ) != 0 &&
+                               !regex_matches( b->a_sockurl_pat, conn->c_listener_url,
                                edn, matches ) ) 
                        {
                                continue;
index 83a3bee8c62582696f5ddc0ff65cd2533481e69d..6a291fd2b127bf6cd308c3bb6e8c8704e5627ba6 100644 (file)
@@ -304,16 +304,16 @@ parse_acl(
                                        continue;
                                }
 
-                               if ( strcasecmp( left, "url" ) == 0 ) {
-                                       if( b->a_url_pat != NULL ) {
+                               if ( strcasecmp( left, "sockurl" ) == 0 ) {
+                                       if( b->a_sockurl_pat != NULL ) {
                                                fprintf( stderr,
-                                                       "%s: line %d: url pattern already specified.\n",
+                                                       "%s: line %d: sockurl pattern already specified.\n",
                                                        fname, lineno );
                                                acl_usage();
                                        }
 
                                        regtest(fname, lineno, right);
-                                       b->a_url_pat = ch_strdup( right );
+                                       b->a_sockurl_pat = ch_strdup( right );
                                        continue;
                                }
 
@@ -433,7 +433,7 @@ acl_usage( void )
                "<attrlist> ::= <attr> | <attr> , <attrlist>\n"
                "<attr> ::= <attrname> | entry | children\n"
                "<who> ::= [ * | anonymous | self | dn=<regex> ]\n"
-                       "\t[dnattr=<attrname>]\t"
+                       "\t[dnattr=<attrname>]\n"
                        "\t[group[/<objectclass>[/<attrname>]]=<regex>]\n"
                        "\t[peername=<regex>] [sockname=<regex>]\n"
                        "\t[domain=<regex>] [sockurl=<regex>]\n"
@@ -520,8 +520,8 @@ print_access( Access *b )
                fprintf( stderr, " domain=%s", b->a_domain_pat );
        }
 
-       if ( b->a_url_pat != NULL ) {
-               fprintf( stderr, " url=%s", b->a_url_pat );
+       if ( b->a_sockurl_pat != NULL ) {
+               fprintf( stderr, " sockurl=%s", b->a_sockurl_pat );
        }
 
        fprintf( stderr, "\n" );
index 1eee373e038302f5d4fb83d6d164c9d7d1b1113d..aa558c63738b313eb4c97dc1799dbcd0367d25b3 100644 (file)
@@ -237,7 +237,7 @@ typedef struct slap_access {
        char            *a_sockname_pat;
 
        char            *a_domain_pat;
-       char            *a_url_pat;
+       char            *a_sockurl_pat;
 
        /* ACL Groups */
        char            *a_group_pat;