Добавлено изменение поля комментарий для пользователя сервиса Samba.

git-svn-id: http://svn.calculate.ru/calculate2/calculate-server/trunk@1719 c91db197-33c1-4113-bf15-f8a5c547ca64
develop
asamoukin 15 years ago
parent 5a6e749f3b
commit 27051c36f3

@ -6707,6 +6707,17 @@ Samba and Unix services") %", ".join(exclGroup)
return False
if printSuccess:
self.printSUCCESS(_("Replaced list of supplementary group"))
# Изменяем комментарий к пользователю
if options.has_key('c'):
comment = options['c']
if res[0][0][1].has_key('displayName'):
modAttrs = [(ldap.MOD_REPLACE, 'displayName', comment)]
else:
modAttrs = [(ldap.MOD_ADD, 'displayName', comment)]
DN = self.addDN("uid="+userName, self.relUsersDN)
if not self.modAttrsDN(DN, modAttrs):
return False
self.printSUCCESS(_("Modified comment"))
return True
class filterProfiles(cl_profile.profile):
@ -8853,6 +8864,13 @@ the password will be changed only for Samba account")
'helpChapter':_("Unix service options"),
'help':_("new value of the COMMENT field")
},
{'progAccess':(5,),
'shortOption':"c",
'longOption':"comment",
'optVal':"COMMENT",
'helpChapter':_("Samba service options"),
'help':_("new value of the COMMENT field")
},
{'progAccess':(5,),
'shortOption':"c",
'longOption':"comment",

Loading…
Cancel
Save