summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2018-04-18 13:18:36 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2018-04-18 13:18:36 (GMT)
commitc60cc535c6258316ff5d798d6ac858bc1c66a148 (patch)
treec1d65ce6ca76fec6112b2d1625b0ce3bd9df8c10
parent778861bcfeff28b891ee5ee8fd7020ea40226186 (diff)
downloadpfwbged.ocrloader-c60cc535c6258316ff5d798d6ac858bc1c66a148.zip
pfwbged.ocrloader-c60cc535c6258316ff5d798d6ac858bc1c66a148.tar.gz
pfwbged.ocrloader-c60cc535c6258316ff5d798d6ac858bc1c66a148.tar.bz2
don't require profilePath attribute (#23244)
-rw-r--r--generate-ldap-users.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/generate-ldap-users.py b/generate-ldap-users.py
index 0d29b47..0d46f38 100644
--- a/generate-ldap-users.py
+++ b/generate-ldap-users.py
@@ -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]