Summary:ASTERISK-12861: Provide working demo users for ldap/realtime backend.
Reporter:Brendan Martens (shrift)Labels:
Date Opened:2008-10-09 16:22:16Date Closed:2009-05-21 10:18:30
Versions:Frequency of
Description:The distributed file doc/ldap.txt does not have accurate information according to the schema distributed in contrib/scripts/asterisk.ldap-schema. For instance in the doc/ldap.txt file a "objectClass: AstAccountSIP" is specified, but it does not exist in the schema!

It would be good to include a working ldif that we can apply to our openldap that would create a few test users to help us get started with configuring the ldap backend users.

I have successfully imported the schema, but I can't seem to successfully create the user trees similar to below. (using the correct objects as defined in the schema of course.)

Excerpt from doc/ldap.txt:
# Base SIP Phones Entry
dn: uid=phone-base,dc=myDomain,dc=myDomainExt
objectClass: top
objectClass: AstAccount
objectClass: AstAccountSIP
uid: phone-base
AstAccountAccountingCode: baseacccode
AstAccountHost: dynamic
preferredLanguage: FR
AstAccountAMAFlags: billing
AstAccountContext: ldaptest


Asterisk version is from SVN tags/1.6.0. I'm not sure what checkout number was.
Comments:By: Tilghman Lesher (tilghman) 2008-10-09 18:11:47

suretec: could you take a look at this issue, please?

By: Gavin Henry (suretec) 2008-10-10 03:17:48

Will do. Won't be until next week sometime.

By: Leif Madsen (lmadsen) 2009-01-09 13:51:04.000-0600

Also this issue... next week yet? :)

By: Gavin Henry (suretec) 2009-01-14 09:43:52.000-0600

Sorry, been very busy. Will get to it soon.

By: Leif Madsen (lmadsen) 2009-01-14 14:34:08.000-0600

I think 13861 may have the working schema actually now as jcovert added some comments there. Can you verify that? If so, I do plan on adding some documentation, and getting that patch committed. If you could verify that is true, then we could close out those two bugs at the same time.


By: Gavin Henry (suretec) 2009-01-14 14:39:41.000-0600

The schema works, just the docs are work. Will try to do this this week.

By: John Covert (jcovert) 2009-01-14 15:31:46.000-0600

That's right, the schema is correct.  The mods to res_ldap.conf over in issue ASTERISK-13036 do need to be committed, but since everyone has to edit that file themselves, many are able to figure out how to fix it.

By: Gavin Henry (suretec) 2009-05-20 18:36:33

Is this still needed, as I just saw https://issues.asterisk.org/view.php?id=13861

Didn't know about that.

By: Leif Madsen (lmadsen) 2009-05-21 10:18:29

Closing this issue as it appears that 13861 may have actually taken over what this issue was trying to do. So I'm going to close this issue unless someone can specifically think of a reason this should still be open.

Feel free to reopen if necessary.