[Home]

Summary:ASTERISK-12197: [patch] Included example schema not compatible with res_config_ldap.c
Reporter:W. Michael Petullo (flyn)Labels:
Date Opened:2008-06-14 12:35:33Date Closed:2009-01-05 11:33:12.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Resources/res_config_ldap
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) 99asterisk.ldif
( 1) asterisk.ldap-schema.patch
( 2) asterisk.ldif
( 3) asterisk.schema
( 4) res_ldap.conf.patch
Description:Bug ASTERISK-11662 provided two patches that fixed the example res_ldap.conf and LDAP schema files provided by Asterisk. This bug was closed with no indication that this issue will be fixed.
Comments:By: Tilghman Lesher (tilghman) 2008-06-18 19:06:55

I need you to coordinate with user suretec on any such changes, as the current schema came from him.

By: Tilghman Lesher (tilghman) 2008-06-18 19:07:35

suretec:  could you coordinate with flyn on these changes, please?

By: Gavin Henry (suretec) 2008-06-19 03:55:59

This patch is missing the ldif sections and ObjectIdentifiers as per:

http://svn.digium.com/view/asterisk/trunk/contrib/scripts/asterisk.ldap-schema?revision=115509&view=markup

I'm not sure how they even tested and proved this worked without having a:

objectIdentifier AstAccountIPAddress AstAttrType:46

What did you test with?

Thanks.

By: W. Michael Petullo (flyn) 2008-06-19 14:44:14

I am using the Fedora Directory Server for LDAP. The syntax of FDS's schema seems to be a little different than that of asterisk.ldap-schema.patch. I implemented the necessary changes to my FDS schema and then "ported" them to asterisk.ldap-schema.patch. As you pointed out, this does not quite work.

What I can say is that the realtime LDAP backend does not work when I try to use it and the example schema and res_ldap.conf to configure SIP users and extensions. The patches above fix this for me and now I am using the realtime LDAP backend with FDS. Since the asterisk.ldap-schema is not compatible with my LDAP server, I think someone else may need to "port" my patch to the preferred schema format.

By: Gavin Henry (suretec) 2008-06-19 15:11:35

What OID did you use for these attributes? We could a plain one without ObjectIdentifiers.

Did you follow res_ldap here:

http://www.voip-info.org/wiki/view/LDAP

This guide uses the bundled schemas.

By: W. Michael Petullo (flyn) 2008-06-19 15:28:59

For reference, the file 99asterisk.ldif is the schema I am using with the Fedora Directory Server.

By: Tilghman Lesher (tilghman) 2008-07-02 15:00:42

Any progress on this?

By: Gavin Henry (suretec) 2008-07-02 15:37:36

Sometime tomorrow I'll add flyns new attributes and upload a new schema unless you want a new ticket?

By: Tilghman Lesher (tilghman) 2008-07-02 16:38:48

suretec:  no, here is fine.  It's just been 2 weeks, and I wanted to make sure things were still moving.

By: Gavin Henry (suretec) 2008-07-04 06:02:55

New schema uploaded.

Thanks.

By: Digium Subversion (svnbot) 2008-07-05 10:10:22

Repository: asterisk
Revision: 128160

U   trunk/contrib/scripts/asterisk.ldap-schema
U   trunk/contrib/scripts/asterisk.ldif

------------------------------------------------------------------------
r128160 | tilghman | 2008-07-05 10:10:17 -0500 (Sat, 05 Jul 2008) | 7 lines

LDAP schema updates
(closes issue ASTERISK-12197)
Reported by: flyn
Patches:
      asterisk.ldif uploaded by suretec (license 70)
      asterisk.schema uploaded by suretec (license 70)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=128160

By: W. Michael Petullo (flyn) 2008-09-06 12:45:10

The patch against res_ldap.conf still needs to be applied.

By: Digium Subversion (svnbot) 2008-10-09 18:15:42

Repository: asterisk
Revision: 148120

U   trunk/configs/res_ldap.conf.sample

------------------------------------------------------------------------
r148120 | tilghman | 2008-10-09 18:15:41 -0500 (Thu, 09 Oct 2008) | 6 lines

Fix example schema
(closes issue ASTERISK-12197)
Reported by: flyn
Patches:
      res_ldap.conf.patch uploaded by flyn (license 503)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=148120

By: W. Michael Petullo (flyn) 2009-01-04 19:16:33.000-0600

I'd still like to see a Fedora (AKA Red Hat) Directory Server schema included with asterisk. I attached one to this report, 99asterisk.ldif. Could this go in contrib/scripts?

By: Tilghman Lesher (tilghman) 2009-01-05 11:33:12.000-0600

Please do not reopen long fixed issues.  Instead, open new issues.