fixed addReplDN
This commit is contained in:
parent
ae07b11159
commit
52e217f20b
1 changed files with 6 additions and 6 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue