LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-03-2013, 11:12 PM   #1
elalexluna83
Member
 
Registered: Mar 2012
Posts: 55

Rep: Reputation: Disabled
OpenLDAP can't query from client


Hi All, i just installed a ldap server but i can't query from client, can anyone give me a hand?

FROM SERVER (LOCAHOST)
Code:
[root@localhost SETUP]# ldapadd -Dcn=Manager,dc=homeluna,dc=org -W -f ./base.ldif 
Enter LDAP Password: 
adding new entry "ou=People,dc=homeluna,dc=org"

adding new entry "ou=Group,dc=homeluna,dc=org"

[root@localhost SETUP]# ldapsearch -LLL -Dcn=Manager,dc=homeluna,dc=org -W objectclass=*
Enter LDAP Password: 
dn: dc=homeluna,dc=org
dc: homeluna
objectClass: top
objectClass: domain

dn: ou=People,dc=homeluna,dc=org
ou: People
objectClass: top
objectClass: organizationalUnit

dn: ou=Group,dc=homeluna,dc=org
ou: Group
objectClass: top
objectClass: organizationalUnit
FROM CLIENT
Code:
alexrl@oc4001252574 ~ $ ldapsearch -LLL -h ldaptest -Dcn=Manager,dc=homeluna,dc=org -W objectclass=*
Enter LDAP Password: 
No such object (32)
 
Old 01-03-2013, 11:44 PM   #2
elalexluna83
Member
 
Registered: Mar 2012
Posts: 55

Original Poster
Rep: Reputation: Disabled
so silly from me, i forgot to indicate searchbase, it must be i'm working late.
Thanks for check this post.
Code:
alexrl@oc4001252574 ~ $ ldapsearch -LLL -h ldaptest -Dcn=Manager,dc=homeluna,dc=org -W -bou=People,dc=homeluna,dc=org
Enter LDAP Password: 
dn: ou=People,dc=homeluna,dc=org
ou: People
objectClass: top
objectClass: organizationalUnit
 
  


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
[SOLVED] ldap_bind: Invalid credentials (49) when trying OpenLDAP query Sma11T0wnITGuy Linux - Server 19 08-17-2016 06:12 PM
[SOLVED] OPENLDAP client integration with the server shridhar005 Linux - Server 7 07-03-2012 01:46 AM
OpenLDAP query Active Directory noir911 Linux - Server 0 04-30-2008 06:18 AM
Openldap client auth Kateto Linux - Server 4 10-29-2007 01:59 PM
Solari 9 client --> openldap server unix-o-matic Solaris / OpenSolaris 1 05-03-2004 08:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:03 AM.

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