[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
Sun Jan 11 12:40:45 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!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-11-07 11:24 CST
Last Modified:              2009-01-11 12:40 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    


====================================================================== 

---------------------------------------------------------------------- 
 (0097452) jcovert (reporter) - 2009-01-11 12:40
 http://bugs.digium.com/view.php?id=13861#c97452 
---------------------------------------------------------------------- 
Leif,

I'm using OpenLDAP on Mac OS X.  To figure it all out, I first started
just poking around in various LDAP servers with the ldapsearch utility. 
Then, when it was time to really try it out with Asterisk, I needed to get
my own LDAP server going.  So I just started at page 1 of
http://www.openldap.org/doc/admin24/ reading and trying out the examples. 
Reading every word, and trying every example.

The first glitch came when trying to use ldapadd to add my first entries. 
"Failed to authenticate." After much googling (Google is your friend), I
found that the Mac OS X version is built with "plaintext passwords
verboten", so I determined that the "rootpw" in slapd.conf needed to be
created with slappasswd and entered as {SSHA}hashedpassword as mentioned
for the Asterisk Admin password up in Note 0097430.

Once I started trying to put in Asterisk entries I ran into problems with
the examples at http://www.flyn.org/astldap/ .  These examples are very
helpful, but they don't correspond exactly to reality; see the changes we
made to res_ldap.conf for starters.  I started getting some schema errors. 
There's an option "schemacheck" which needs to be off (Google again helped
me find this, although the comment is "you should really fix your
schema").

When I started thinking that it was now time to start thinking about
access control, I discovered that there was a major change in how
configuration is done beginning with OpenLDAP version 2.3, so I needed to
find out for sure what version is installed on Mac OS X.  No command seemed
to be available to find out, so again, Google to the rescue, where I found
out that "strings slapd | grep \$OpenLDAP" would answer the question.  At
this point I switched to the proper version documentation at
http://www.openldap.org/doc/ and continued.

/john 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-01-11 12:40 jcovert        Note Added: 0097452                          
======================================================================




More information about the asterisk-bugs mailing list