Fix nameuid ACL bug and remove related lint

This commit is contained in:
Kurt Zeilenga 2000-10-11 04:43:57 +00:00
parent 941ceb51ac
commit 807bf1b5cf
5 changed files with 8 additions and 4 deletions

View File

@ -2,6 +2,7 @@ OpenLDAP 2.0 Change Log
OpenLDAP 2.0.X Engineering
Fixed slapd spasswd mutex bug
Fixed slapd ACL nameuid bug
Updated -lldap SASL error reporting
Updated -lldap TLS error reporting
Build Environment

View 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",

View File

@ -257,7 +257,7 @@ get_filter(
case LDAP_FILTER_EXT:
/* not yet implemented */
Debug( LDAP_DEBUG_ANY, "extensible match not yet implemented.\n",
f->f_choice, 0, 0 );
0, 0, 0 );
(void) ber_skip_tag( ber, &len );
f->f_choice = SLAPD_FILTER_COMPUTED;
f->f_result = SLAPD_COMPARE_UNDEFINED;

View File

@ -203,7 +203,7 @@ register_matching_rule(
ldap_memfree( mr );
if ( code ) {
Debug( LDAP_DEBUG_ANY, "Error in register_syntax: %s for %s in %s\n",
Debug( LDAP_DEBUG_ANY, "Error in register_matching_rule: %s for %s in %s\n",
scherr2str(code), err, desc );
return( -1 );
}

View 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;