LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Ldap Issues - just need a good guide link (https://www.linuxquestions.org/questions/linux-software-2/ldap-issues-just-need-a-good-guide-link-483080/)

cfrantzen 09-13-2006 08:37 AM

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.

druuna 09-13-2006 09:13 AM

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.

cfrantzen 09-13-2006 09:16 AM

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.

druuna 09-13-2006 09:28 AM

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?

cfrantzen 09-13-2006 09:56 AM

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!

druuna 09-13-2006 10:33 AM

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.

bathory 09-13-2006 12:54 PM

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

cfrantzen 09-13-2006 06:51 PM

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. ^^


All times are GMT -5. The time now is 05:29 AM.