Development Articles
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherDevelopment Articles

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 9th, 2003, 08:24 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Unable to build LDAP

I'm unable to build LDAP. After executing the following:


LD_LIBRARY_PATH=/usr/local/BerkeleyDB.4.1/lib; export LD_LIBRARY_PATH

env LIBS="-l/usr/local/BerkeleyDB.4.1/lib" CPPFLAGS="-I/usr/local/BerkeleyDB.4.1/include" LDFLAGS="-I/usr/local/BerkeleyDB.4.1/lib" ./configure --prefix=/usr/local/openldap

I receive the following error:

checking for db.h... yes
checking for Berkeley DB link (default)... no
checking for Berkeley DB link (-ldb4)... no
checking for Berkeley DB link (-ldb-4)... no
checking for Berkeley DB link (-ldb)... no
checking for Berkeley DB link (-ldb3)... no
checking for Berkeley DB link (-ldb-3)... no
checking for Berkeley DB link (-ldb2)... no
checking for Berkeley DB link (-ldb-2)... no
checking for Berkeley DB link (-ldb1)... no
checking for Berkeley DB link (-ldb-1)... no
configure: error: BDB: BerkeleyDB not available

I tried several ways to fix this but I'm unable to.

Reply With Quote
  #2  
Old March 11th, 2003, 08:25 AM
falcon falcon is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 1999
Location: UK
Posts: 50 falcon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 21 m 33 sec
Reputation Power: 10
Re: Unable to build LDAP

Try here:
"http://www.openldap.org/faq/data/cache/40.html":http://www.openldap.org/faq/data/cache/40.html

env CPPFLAGS="-I/usr/local/BerkeleyDB.4.1/include"
LDFLAGS="-L/usr/local/BerkeleyDB.4.1/lib"
./configure --prefix=/usr/local/openldap

I had the same problem and this is what I used to fix it, it looks like you tried the same thing but included LIBS at the beginning, I don't know if this will make a difference??

Hope the suggestion helps.

Reply With Quote
  #3  
Old March 11th, 2003, 12:01 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Unable to add user

I am Unable to add a user I have created a ldif, but went I try to add a user I get the error message...

ldap_bind: Invalid DN syntax
additional info: invalid DN

Could some please help me out.


Thanks alot

Reply With Quote
  #4  
Old March 13th, 2003, 11:21 AM
falcon falcon is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 1999
Location: UK
Posts: 50 falcon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 21 m 33 sec
Reputation Power: 10
Re: Unable to add user

I have only just started using LDAP myself so I am offering advice from the top of my head.

Check your ldif file. When I followed the example in the tutorial I copied and pasted and everything worked out fine.

Check the config files match exactly.

The only thing that I can think based on your description is that there is a configuration problem either in slapd.conf or through your ldif.

You can make sure that you config file is correct by providing a -t switch when you start slapd. This will let you know of any errors??

I know its not much help but I tried... :(

LR

Reply With Quote
  #5  
Old March 13th, 2003, 11:21 AM
falcon falcon is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 1999
Location: UK
Posts: 50 falcon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 21 m 33 sec
Reputation Power: 10
Re: Unable to add user

I have only just started using LDAP myself so I am offering advice from the top of my head.

Check your ldif file. When I followed the example in the tutorial I copied and pasted and everything worked out fine.

Check the config files match exactly.

The only thing that I can think based on your description is that there is a configuration problem either in slapd.conf or through your ldif.

You can make sure that you config file is correct by providing a -t switch when you start slapd. This will let you know of any errors??

I know its not much help but I tried... :(

LR

Reply With Quote
  #6  
Old March 17th, 2003, 02:37 PM
Messner's Avatar
Messner Messner is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: Slovenia
Posts: 29 Messner User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 42 m 10 sec
Reputation Power: 0
Send a message via ICQ to Messner
Add data

I don't quite get it ...

Is it posible to add address book data in the Netscape or can I only read data out of it ?

Iztok

Reply With Quote
  #7  
Old March 25th, 2003, 05:13 PM
monotreme's Avatar
monotreme monotreme is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Mar 2003
Location: Oregon
Posts: 912 monotreme User rank is First Lieutenant (10000 - 20000 Reputation Level)monotreme User rank is First Lieutenant (10000 - 20000 Reputation Level)monotreme User rank is First Lieutenant (10000 - 20000 Reputation Level)monotreme User rank is First Lieutenant (10000 - 20000 Reputation Level)monotreme User rank is First Lieutenant (10000 - 20000 Reputation Level)monotreme User rank is First Lieutenant (10000 - 20000 Reputation Level)monotreme User rank is First Lieutenant (10000 - 20000 Reputation Level)monotreme User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 6 Days 10 h 18 m 54 sec
Reputation Power: 110
Send a message via Yahoo to monotreme
stuck for audio

When I run slapd it gives me this:

/usr/local/opeldap/etc/openldap/schema/inetorgperson.schema line 142: AttributeType not found: "audio"

What now?
__________________
Nothing says CLUELESS NOOB quite as poignantly as $q = "SELECT * FROM users WHERE id = " . $_GET[id];

Reply With Quote
  #8  
Old March 26th, 2003, 11:21 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
overlooked code

If your DN looks like dc=melonfire,dc=com
you have to have an
attribute with the value of the RDN to conform to the LDAP data model
I.e. you need an attribute
dc: itarchitect

which is NOT correctly written in the example provided eg:
dn: dc=melonfire, dc=com
objectclass: dcObject
objectclass: organization
o: Melonfire
dc: melonfire.com

for those who care
**** coding:)

Reply With Quote
  #9  
Old March 26th, 2003, 11:29 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
[no subject]


Reply With Quote
  #10  
Old April 11th, 2003, 06:10 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: Unable to build LDAP

Falcon,
Thanks for the tip. I couldn't configure openldap w/ BerkleyBD 4.1 until reading your post.

thanks,
sterling

Reply With Quote
  #11  
Old April 11th, 2003, 06:11 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
[no subject]


Reply With Quote
  #12  
Old April 25th, 2003, 06:25 AM
segorbe segorbe is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 2 segorbe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Re: Unable to build LDAP

Good morning,
I have the same problem, I am using this:
env CPPFLAGS="-I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.1/include" LDFLAGS="-L/usr/local/ssl/lib -I/usr/local/BerkeleyDB.4.
1/lib" \
./configure

But the error does not disappear:
checking for db.h... yes
checking for Berkeley DB link (default)... no
checking for Berkeley DB link (-ldb4)... no
checking for Berkeley DB link (-ldb-4)... no
checking for Berkeley DB link (-ldb)... no
checking for Berkeley DB link (-ldb3)... no
checking for Berkeley DB link (-ldb-3)... no
checking for Berkeley DB link (-ldb2)... no
checking for Berkeley DB link (-ldb-2)... no
checking for Berkeley DB link (-ldb1)... no
checking for Berkeley DB link (-ldb-1)... no
configure: error: BDB: BerkeleyDB not available

Regards and thanks in advance.

Reply With Quote
  #13  
Old April 29th, 2003, 04:12 AM
segorbe segorbe is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 2 segorbe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Re: Unable to build LDAP

I have fixed it!!!

In the LDFLAGS variable i put an "I" instead of an "L", that's why it did not find the Berkeley libraries.

The correct options is:
env CPPFLAGS="-I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.1/include" LDFLAGS="-L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.
1/lib" \
./configure

Regards.

Reply With Quote
  #14  
Old May 26th, 2003, 04:12 PM
Ducani
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Understanding LDAP (part 2)

Understanding LDAP \(part 2\)

Now that you know how LDAP works, it's time to put it into practice. In this article, find out how to compile, install and configure the OpenLDAP software suite, create an LDAP directory for your organization, and add entries to it. Also included: a detailed discussion of how to search the database using both the UNIX client tools supplied with OpenLDAP, and the LDAP client built into Qualcomm Eudora.


Please discuss this article in this thread. You can read the article here .

Reply With Quote
  #15  
Old May 28th, 2003, 11:01 AM
Ducani
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
If you would like to see an article covering a particular topic, please post your request here.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherDevelopment Articles > Understanding LDAP (part 2)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |