mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
Fix ACL logic for non-regex peername, sockname, etc.
This commit is contained in:
parent
7db15e9d12
commit
319b92202b
@ -606,7 +606,7 @@ acl_mask(
|
||||
continue;
|
||||
}
|
||||
} else {
|
||||
if ( strcasecmp( b->a_sockurl_pat, conn->c_listener_url ) == 0 )
|
||||
if ( strcasecmp( b->a_sockurl_pat, conn->c_listener_url ) != 0 )
|
||||
continue;
|
||||
}
|
||||
}
|
||||
@ -629,7 +629,7 @@ acl_mask(
|
||||
continue;
|
||||
}
|
||||
} else {
|
||||
if ( strcasecmp( b->a_domain_pat, conn->c_peer_domain ) == 0 )
|
||||
if ( strcasecmp( b->a_domain_pat, conn->c_peer_domain ) != 0 )
|
||||
continue;
|
||||
}
|
||||
}
|
||||
@ -652,7 +652,7 @@ acl_mask(
|
||||
continue;
|
||||
}
|
||||
} else {
|
||||
if ( strcasecmp( b->a_peername_pat, conn->c_peer_name ) == 0 )
|
||||
if ( strcasecmp( b->a_peername_pat, conn->c_peer_name ) != 0 )
|
||||
continue;
|
||||
}
|
||||
}
|
||||
@ -675,7 +675,7 @@ acl_mask(
|
||||
continue;
|
||||
}
|
||||
} else {
|
||||
if ( strcasecmp( b->a_sockname_pat, conn->c_sock_name ) == 0 )
|
||||
if ( strcasecmp( b->a_sockname_pat, conn->c_sock_name ) != 0 )
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user