Commit 75d77433 authored by Josep Martin's avatar Josep Martin
Browse files

Extra options in ldap filter

You can now create extended filters:
(|(gidNumber=xxx)(gidNumber=xxx)(gidNumber=xxx))

add options #1083
parent c34197f3
......@@ -152,8 +152,7 @@ sub search_user {
my $filter = "($field=$username)";
if ( exists $$CONFIG->{ldap}->{filter} ) {
my $filter_config = $$CONFIG->{ldap}->{filter};
$filter_config = escape_filter_value($filter_config);
$filter = "(&($field=$username) ($filter_config))";
$filter = "(&(|($field=$username)) $filter_config)";
}
my $mesg = $ldap->search( # Search for the user
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment