[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
Mon Jan 12 00:50:42 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-12 00:50 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    


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

---------------------------------------------------------------------- 
 (0097465) jcovert (reporter) - 2009-01-12 00:50
 http://bugs.digium.com/view.php?id=13861#c97465 
---------------------------------------------------------------------- 
I just learned the hard way that upgrading from OpenLDAP 2.1 to 2.2 _may_
require recreating the entire database.  There may be a conversion tool,
but at my stage, it was easier to just recreate from scratch.  This also
allows me to provide to you a complete minimal database below:

# LDAPv3
# Minimum top level ldap stuff
# your-domain.tld
dn: dc=your-domain,dc=tld
objectClass: dcObject
objectClass: organization
o: The Your-domain Organization
dc: your-domain

# This will be the user for the root password in the config file
# Manager, your-domain.tld
dn: cn=Manager,dc=your-domain,dc=tld
objectClass: organizationalRole
cn: Manager

# This will be the user who goes into res_ldap.conf
# AsteriskManager, your-domain.tld
dn: cn=AsteriskManager,dc=your-domain,dc=tld
objectClass: organizationalRole
cn: AsteriskManager
userPassword: {SSHA}output of slappasswd

# This is the top of the sip entries
# sippeers, your-domain.tld
dn: ou=sippeers,dc=your-domain,dc=tld
ou: sippeers
objectClass: organizationalUnit

# Everything above this must be created by root if your security is
# set up as I described earlier
# Everything below this could be created by Asterisk Manager
# user1, sippeers, your-domain.tld
dn: cn=user1,ou=sippeers,dc=your-domain,dc=tld
objectClass: AsteriskSIPUser
cn: user1
AstAccountCallerID: User 1 <2001>
AstAccountHost: dynamic
AstAccountRealmedPassword: {MD5}use echo -n "SIPUSER:domain.tld:pwd" |
md5sum
AstAccountContext: ldapuser

# user2, sippeers, your-domain.tld
dn: cn=user2,ou=sippeers,dc=your-domain,dc=tld
objectClass: AsteriskSIPUser
cn: user2
AstAccountCallerID: User 2 <2002>
AstAccountHost: dynamic
AstAccountRealmedPassword: {MD5}use echo as above
AstAccountContext: default

etc. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-01-12 00:50 jcovert        Note Added: 0097465                          
======================================================================




More information about the asterisk-bugs mailing list