Исправлена ошибка - при добавлении пользователя с указанием jabber ID (опция -jid) новый пользователь не виден в группе

git-svn-id: http://svn.calculate.ru/calculate2/calculate-server/trunk@1373 c91db197-33c1-4113-bf15-f8a5c547ca64
develop
asamoukin 15 years ago
parent b9178d2137
commit f6b4fa6b35

@ -2,7 +2,7 @@
dn: uid=#-ur_name-#,ou=Users,#-ld_jabber_dn-#
objectClass: inetOrgPerson
uid: #-ur_name-#
cn: #-ur_name-#
cn: #-sr_jabber_user_name-#
sn: #-ur_fio-#
mail: #-sr_jabber_user_id-#
initials: Yes

@ -509,3 +509,10 @@ class fillVars(object, cl_base.glob_attr):
if jabberHosts:
return ", ".join(map(lambda x: '"'+x+'"', jabberHosts.split(",")))
return ""
def get_sr_jabber_user_name(self):
"""Имя jabber пользователя (левая часть jabber id)"""
userJid = self.Get("sr_jabber_user_id")
if userJid:
return userJid.partition('@')[0]
return ""

@ -154,6 +154,9 @@ class Data:
# jabber id пользователя
sr_jabber_user_id = {'mode':"w"}
# имя jabber пользователя (левая часть jabber id)
sr_jabber_user_name = {'mode':"w"}
# шифрование при получении - ''/ssl
sr_jabber_crypt = {'mode':"w",'value':'ssl'}

Loading…
Cancel
Save