[asterisk-bugs] [Asterisk 0013861]: ERROR[23999]: res_config_ldap.c:1292 update_ldap: Couldn't modify ... Undefined attribute type

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Jan 16 10:44:35 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13861 
====================================================================== 
Reported By:                scramatte
Assigned To:                blitzrage
====================================================================== 
Project:                    Asterisk
Issue ID:                   13861
Category:                   Resources/res_config_ldap
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     acknowledged
Asterisk Version:           1.6.0.1 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2008-11-07 11:24 CST
Last Modified:              2009-01-16 10:44 CST
====================================================================== 
Summary:                    ERROR[23999]: res_config_ldap.c:1292 update_ldap:
Couldn't modify   ...  Undefined attribute type
Description: 
my Asterisk return me this error on SIP register :

ERROR[23999]: res_config_ldap.c:1292 update_ldap: Couldn't modify
dn:cn=200,ou=Telephony,dc=example,dc=com because Undefined attribute type

In spite of this message I can call and receive calls.

I haven't got more details ... 
I've run Asterisk  with  -vvvvvvvvvvvvvvvvgc    


======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0013660 Provide working demo users for ldap/rea...
====================================================================== 

---------------------------------------------------------------------- 
 (0098019) jcovert (reporter) - 2009-01-16 10:44
 http://bugs.digium.com/view.php?id=13861#c98019 
---------------------------------------------------------------------- 
One more important piece of info.

Although my example has entries that are

dn: cn=user2,ou=sippeers,dc=your-domain,dc=tld

we have

sippeers => ldap,"dc=your-domain,dc=tld",sip

in extconfig.conf

there is no need to have either "cn" (or whatever is set for "name" be
that uid or AstAccountName or whatever) as part of the dn.

Asterisk does its lookup as though it were doing an ldapsearch command
(see man ldapsearch) with these arguments:

-b "what-is-in-quotes-in-the-sippeers => def" (&(yyyy)(xxx=peername))

xxx is what you specified in res_ldap.conf for "name=" and yyyy is what
you specified in res_ldap.conf (typically (objectClass=AsteriskSIPUser))

so the DN could very well be something like

dn: cn=John Q Public,ou=people,dc=mycompany,dc=com

(in which case we'd probably use either uid, if it was defined by one of
the other object classes assigned to this entry, or AstAccountName, for the
sippeername) 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-01-16 10:44 jcovert        Note Added: 0098019                          
======================================================================




More information about the asterisk-bugs mailing list