fixed addReplDN

master
parent ae07b11159
commit 52e217f20b

@ -12579,8 +12579,8 @@ if %%errorlevel%%==0 NET USE T: \\\\%s\\ftp' %(netbios,netbios,netbios)
# Если ветка Replication/Mail не существует - добавляем ее
if not self.isReplMailDNExists():
errorMessage = _("Can not append Replication/Mail branch in LDAP")
entry = [('objectclass', ['top','organizationalUnit']),
('ou', ['%s' %self.clVars.Get("ld_repl_mail_login")])]
entry = [('objectclass', [b'top', b'organizationalUnit']),
('ou', [b'%s' % self.clVars.Get("ld_repl_mail_login").encode("UTF-8")])]
try:
self.conLdap.add_s(self.clVars.Get("ld_repl_mail_dn"),
entry)
@ -12594,8 +12594,8 @@ if %%errorlevel%%==0 NET USE T: \\\\%s\\ftp' %(netbios,netbios,netbios)
# Если ветка Replication/Worked не существует - добавляем ее
if not self.isReplWorkedDNExists():
errorMessage = _("Can not append Replication/Worked branch in LDAP")
entry = [('objectclass', ['top','organizationalUnit']),
('ou', ['%s' %self.clVars.Get("ld_repl_worked_login")])]
entry = [('objectclass', [b'top', b'organizationalUnit']),
('ou', [b'%s' % self.clVars.Get("ld_repl_worked_login").encode("UTF-8")])]
try:
self.conLdap.add_s(self.clVars.Get("ld_repl_worked_dn"),
entry)
@ -15793,7 +15793,7 @@ or '-P')"))
groupGecos = self.servUnixObj.groupGecos
if 'c' in options:
groupGecos = options['c']
self.clVars.Set("ur_group_comment",groupGecos)
self.clVars.Set("ur_group_comment", groupGecos)
# Тип группы
groupType = "port"
accessPorts = ""
@ -15901,7 +15901,7 @@ is not valid ") %accessPorts)
# Берем комментарий для пользователя из Unix
if resUnix and 'cn' in resUnix[0][0][1]:
fullNameUser = resUnix[0][0][1]['cn'][0].decode("UTF-8")
self.clVars.Set("ur_fio",fullNameUser)
self.clVars.Set("ur_fio", fullNameUser)
ldifFile = self.ldifFileUser
userLdif = self.createLdif(ldifFile)
if not self.ldapObj.getError():

Loading…
Cancel
Save