summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJens Vagelpohl <jens@netz.ooo>2002-07-30 13:40:11 +0000
committerJens Vagelpohl <jens@netz.ooo>2002-07-30 13:40:11 +0000
commitfe61103f064d588f224eb10350608918c5316b0e (patch)
tree87b0afc0faf2be48b1b43e7bc46c3a08919ec0cc
parent97fe1b5b8dabcf4d60c928eec15b9031bdff72b2 (diff)
downloadLDAPRoleExtender-fe61103f064d588f224eb10350608918c5316b0e.zip
LDAPRoleExtender-fe61103f064d588f224eb10350608918c5316b0e.tar.gz
Fixed case where a non-existing user was wrapped
-rw-r--r--LDAPRoleExtender.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/LDAPRoleExtender.py b/LDAPRoleExtender.py
index 3e5a734..d01c249 100644
--- a/LDAPRoleExtender.py
+++ b/LDAPRoleExtender.py
@@ -365,7 +365,10 @@ class LDAPRoleExtender( SimpleItem ):
extended_user = self.getUser( raw_user.getUserName()
, raw_user._getPassword()
)
- extended_user = extended_user.__of__( luf )
+
+ if extended_user is not None:
+ extended_user = extended_user.__of__( luf )
+
else:
extended_user = raw_user