don't require profilePath attribute (#23244)

This commit is contained in:
Frédéric Péters 2018-04-18 15:18:36 +02:00
parent 778861bcfe
commit c60cc535c6
1 changed files with 0 additions and 2 deletions

View File

@ -28,8 +28,6 @@ for entry in ldap_conn.search_s("ou=ouGED,ou=ouPCF,ou=ouUsers,dc=win,dc=info,dc=
ldap.SCOPE_SUBTREE, "objectclass=user"):
if not entry[0]:
continue
if not entry[1].get('profilePath'):
continue
try:
username = entry[1]['sAMAccountName'][0]