|
|
|
@ -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",
|
|
|
|
|