[sysadmin-bin] create-auth: fix user_data creation
- From: Olav Vitters <ovitters src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] create-auth: fix user_data creation
- Date: Sat, 2 Apr 2011 12:21:10 +0000 (UTC)
commit 6f91505f06c7e1a780594e93b50c111337268bfb
Author: Olav Vitters <olav vitters nl>
Date: Sat Apr 2 14:21:06 2011 +0200
create-auth: fix user_data creation
create-auth | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/create-auth b/create-auth
index 4d55513..a4f9645 100755
--- a/create-auth
+++ b/create-auth
@@ -67,6 +67,7 @@ def get_uids_from_group(group):
return members
def _lookup_from_ldap(filter):
+ user_data = {}
try:
searchattrs = ('uid', 'homeDirectory', 'authorizedKey',
'uidNumber', 'gidNumber')
@@ -77,7 +78,7 @@ def _lookup_from_ldap(filter):
sys.exit(1)
if not len(persona_data):
- return {}
+ return user_data
for dn, person_info in persona_data:
key_list = person_info['authorizedKey']
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]