LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-13-2006, 08:37 AM   #1
cfrantzen
LQ Newbie
 
Registered: Sep 2006
Posts: 5

Rep: Reputation: 0
Ldap Issues - just need a good guide link


Hi guys,
i've been put in charge of setting up an ldap shared addressbook by sunday, its been 4 days and so far slapd is setup and going, and i've added 2 addresses. the bad news is the addresses aren't showing up when i do a search "ldapsearch -x -b 'dc=ProfilePlastics,dc=net' '(objectclass=*)' " if i don't get this setup by sunday i'm seriously in the crapper.
I've been following the openldap site but i'm running mepis and everything is in different places. Could you guys point me to a seriously n00bish howto? i've googled, read about 6 textbooks and its 1:30am and i'm in full panic mode. I'm thinking i've missed something tragically simple.

thanks for any help you can throw me I know its a vague description but i'm sure its something i've missed and the right faq/manual will make me scream eureka!

cheers guys.

i'd like to say i'm an intermediate user - but i seem to always be finding something new to learn.
 
Old 09-13-2006, 09:13 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

I don't know how you set things up, but don't you need to provide some credentials? ( -D <binddn> and -w <passwd>)
Ldap (Sun's DS, don't know about openldap) can return 'nothing' if you try to get data anonymously.

PS: I do know that -x is simple authentication (not present in Sun's DS), so I could be off by a mile

Anyways, hope this helps.
 
Old 09-13-2006, 09:16 AM   #3
cfrantzen
LQ Newbie
 
Registered: Sep 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks man

heres the response its giving me

# extended LDIF
#
# LDAPv3
# base <dc=ProfilePlastics,dc=net> with scope sub
# filter: (objectclass=*)
# requesting: ALL
#

# search result
search: 2
result: 32 No such object

# numResponses: 1


I'll give it a go with your suggestion and see if something pops up! thanks man!

argh - no difference really, don't think i even have passwords or users other than the write access. am still reading more texts etc. i think i have sadly reached the point where my brain is leaking out my ears.

Last edited by cfrantzen; 09-13-2006 at 09:27 AM.
 
Old 09-13-2006, 09:28 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

The output in your second post states that 2 entries where searched (search: 2) and nothing was found (result: 32 No such object).

I still think you need to at least use the -D option. But if that doesn't do the trick:

- Could you post the ldif you used (or did you use the gui) to enter these 2 entries?
- What does your ldif.log tell you? Not only about the searches, but also about the 2 entries you added?
 
Old 09-13-2006, 09:56 AM   #5
cfrantzen
LQ Newbie
 
Registered: Sep 2006
Posts: 5

Original Poster
Rep: Reputation: 0
aha! -

# extended LDIF
#
# LDAPv3
# base <-D> with scope sub
# filter: dc=ProfilePlastics,dc=net
# requesting: (objectclass=*)
#

# search result
search: 2
result: 34 Invalid DN syntax
text: invalid DN

# numResponses: 1

can't post the ldif - gotta mod it first (company emails, phone numbers etc) the slapd config checks out with slaptest so its definately a user error somewhere here, most likely in the ldif. I'm using konsole for all entering and checking. and sad as it is - i never thought to check the log . hmmm, did a system search but no log file of that name. must admit though, everything is seriously in different places than all the guides out there. so not surprised if its named oddly.

its 3am so i'll have another in depth crack at it tomorrow, or i'll start eating raw coffee ^^.
mmm coffeeee.

give it a full 24 hours attention and i'm sure i'll crack it...gulp!
 
Old 09-13-2006, 10:33 AM   #6
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

If you are still awake: GOTO BED!
If you read this in the morning: Hope you had a refreshing sleep.

If locate is installed and updatedb has just run: locate ldap.log, or more drastic: find / -name "*ldap.log*" -print

PS: I said ldif.log in my previous thread, that should be ldap.log.
 
Old 09-13-2006, 12:54 PM   #7
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
# extended LDIF
#
# LDAPv3
# base <-D> with scope sub
# filter: dc=ProfilePlastics,dc=net
# requesting: (objectclass=*)
#
There is something wrong with your command. It's like you're using a "-D" right after -b. So ldap thinks that -D is your searchbase.
The correct command should be:
Code:
ldapsearch -x -b "dc=ProfilePlastics,dc=net" objectclass=*
giving an output like:
Quote:
#
# LDAPv3
# base <dc=ProfilePlastics,dc=net> with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#
You can take a look here for more info about openldap.

Regards

Last edited by bathory; 09-14-2006 at 01:47 AM.
 
Old 09-13-2006, 06:51 PM   #8
cfrantzen
LQ Newbie
 
Registered: Sep 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Awesome guys - thanks a million, haven't had a chance to check the log, but man o man that zytrax guide is fantastic. when i get it doing what i want i'll post up all the places i found handy and any tips i can leave for other people who need a hand. Thanks heaps guys. ^^
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I need a good guide! trelamenos SUSE / openSUSE 2 08-15-2006 07:29 PM
where's a good networking guide? calebsg Linux - Networking 3 06-17-2005 03:32 PM
Good memory guide oneandoneis2 Linux - General 5 06-30-2004 08:14 AM
A good postfix guide? herc Linux - Software 8 09-13-2003 12:43 PM
please guide me to good tutorials bearjumperz Programming 1 01-26-2002 05:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration