Commit 5b559a84 authored by Côme Chilliet's avatar Côme Chilliet

Fixes #5538 Fixed migration of winstations and samba users without confusion between those

parent f9144d57
......@@ -1190,6 +1190,7 @@ sub migrate_users {
'(objectClass=person)'.
'(objectClass=OpenLDAPperson)'.
')'.
'(!(objectClass=ipHost))'.
'(!(objectClass=inetOrgPerson))'.
'(uid=*)'.
')',
......@@ -1464,7 +1465,7 @@ sub migrate_winstations
my $ldap = $hash_ldap_param{ldap};
my $mesg = $ldap->search(
filter => "(&(!(objectClass=fdWorkstation))(objectClass=sambaSamAccount))",
filter => "(&(!(objectClass=fdWorkstation))(!(objectClass=inetOrgPerson))(!(objectClass=posixGroup))(uid=*\$)(objectClass=sambaSamAccount))",
base => $base
);
$mesg->code && die $mesg->error;
......
Markdown is supported
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