LinuxQuestions.org
Visit Jeremy's Blog.
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-04-2013, 12:12 AM   #1
elalexluna83
Member
 
Registered: Mar 2012
Posts: 41

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-04-2013, 12:44 AM   #2
elalexluna83
Member
 
Registered: Mar 2012
Posts: 41

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 05:11 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration