X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=blobdiff_plain;f=ud-roleadd;h=f6810f1b22704cdbcae8089dbc0e2757b2679ea3;hp=b04bba853195c4469bfde190e3cdc687dc17e71e;hb=a6fb69805c3999a85c064a96c93417bb1c284c5c;hpb=0817bf289487078799dd6c6967795e744726cb92 diff --git a/ud-roleadd b/ud-roleadd index b04bba8..f6810f1 100755 --- a/ud-roleadd +++ b/ud-roleadd @@ -19,7 +19,7 @@ # 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 @@ -95,8 +95,7 @@ print "Updating LDAP directory..", sys.stdout.flush() Details = [("uid",account), - ("objectClass", - ("top","inetOrgPerson","debianAccount","shadowAccount","debianRoleAccount")), + ("objectClass", RoleObjectClasses), ("uidNumber",str(uidNumber)), ("gidNumber",str(gidNumber)), ("gecos",cn+",,,,"),