projects
/
mirror
/
userdir-ldap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use "not in" operator in various places ("foo not in bar" instead of "not foo in...
[mirror/userdir-ldap.git]
/
ud-roleadd
diff --git
a/ud-roleadd
b/ud-roleadd
index
a3dc1b5
..
3332b6d
100755
(executable)
--- a/
ud-roleadd
+++ b/
ud-roleadd
@@
-4,6
+4,7
@@
# Copyright (c) 1999-2000 Jason Gunthorpe <jgg@debian.org>
# Copyright (c) 2001-2003 James Troup <troup@debian.org>
# Copyright (c) 2004-2005 Joey Schulze <joey@infodrom.org>
# Copyright (c) 1999-2000 Jason Gunthorpe <jgg@debian.org>
# Copyright (c) 2001-2003 James Troup <troup@debian.org>
# Copyright (c) 2004-2005 Joey Schulze <joey@infodrom.org>
+# Copyright (c) 2007,2008 Peter Palfrader <peter@palfrader.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@
-19,7
+20,7
@@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-import
string,
time, ldap, getopt, sys, os, pwd
+import time, ldap, getopt, sys, os, pwd
from userdir_ldap import *
# This tries to search for a free UID. There are two possible ways to do
from userdir_ldap import *
# This tries to search for a free UID. There are two possible ways to do
@@
-49,7
+50,7
@@
for (switch, val) in options:
if (switch == '-u'):
AdminUser = val
if (switch == '-u'):
AdminUser = val
-l = passwdAccessLDAP(
LDAPServer,
BaseDn, AdminUser)
+l = passwdAccessLDAP(BaseDn, AdminUser)
while 1:
account = raw_input("Who are you going to add? ")
while 1:
account = raw_input("Who are you going to add? ")