[sysadmin-bin] create-auth: use LDAP info to change ownership



commit 5f11cd5889d7cb027bdce4e3d8b03f2baf3229a2
Author: Olav Vitters <olav vitters nl>
Date:   Sat Apr 2 14:49:42 2011 +0200

    create-auth: use LDAP info to change ownership

 create-auth |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/create-auth b/create-auth
index f644e74..25e8614 100755
--- a/create-auth
+++ b/create-auth
@@ -124,7 +124,7 @@ def create_home_directories(uids_data):
         continue
 
         shutil.copytree(src, dst, True)
-        subprocess.call(['/bin/chown', '-R', '%s:%s' % (uid, uid), dst ])
+        subprocess.call(['/bin/chown', '-R', '%s:%s' % (user['uidNumber'], user['gidNumber']), dst ])
         created_uids.add(uid)
 
     return created_uids



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]