[sip] utilisation de ldap_readonly
This commit is contained in:
parent
c74b61e941
commit
f917a5c467
3 changed files with 4 additions and 8 deletions
|
@ -45,7 +45,7 @@ class Profile(object):
|
|||
conn.close()
|
||||
|
||||
if caller_id == 'full_name' or caller_id == 'both':
|
||||
conn=lc_ldap.shortcuts.lc_ldap_admin()
|
||||
conn=lc_ldap.shortcuts.lc_ldap_readonly()
|
||||
aid=int(num[1:])
|
||||
adh=conn.search(u'aid=%s' % aid)[0]
|
||||
return '%s %s' % (adh['prenom'][0],adh['nom'][0])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue