GreenLake Administration
Operating System - HP-UX
1847208
Members
2827
Online
110263
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2006 08:47 PM
11-15-2006 08:47 PM
LDAP
can some one give some examples of how to use ldapsearch command (syntax)?
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2006 09:14 PM
11-15-2006 09:14 PM
Re: LDAP
Hi,
have you look at the (SUN) man pages ?
For example:
http://www.cs.biu.ac.il/cgi-bin/man?ldapsearch+1
If this does not help, please specify more detailed what you are having problems with.
Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward the answers given to your questions.
So far you have not awarded any points !
have you look at the (SUN) man pages ?
For example:
http://www.cs.biu.ac.il/cgi-bin/man?ldapsearch+1
If this does not help, please specify more detailed what you are having problems with.
Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward the answers given to your questions.
So far you have not awarded any points !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2006 12:59 AM
11-16-2006 12:59 AM
Re: LDAP
The ldapsearch is pretty simple, these are examples:
Search for all objects in the groups ou:
ldapsearch -x -b ou=groups,dc=example,dc=com,dc=py \
-D "cn=Directory Manager" -W 'objectclass=*'
Search for user id jperez in ou people:
ldapsearch -x -s one -b ou=people,dc=example,dc=com,dc=py \
-D "cn=Directory Manager" -W 'uid=jperez'
Search for all entries of class persons that does not has a telephonenumber associated:
ldapsearch -x -s one -b ou=people,dc=example,dc=com,dc=py \
-D "cn=Directory Manager" -W -H ldaps://fds1.example.com.py \
'(&(objectclass=person)(!(telephonenumber=*)))'
-x : Simple authentication
-s : Scope, "one, base, sub"
-b : Search base
-D : Bind DN
-H : Server URI (ldaps for SSL access)
Search filter:
AND search (&(attribute)(attribute))
OR search (|(attribute)(attribute))
NOT search (!(attribute))
Search for all objects in the groups ou:
ldapsearch -x -b ou=groups,dc=example,dc=com,dc=py \
-D "cn=Directory Manager" -W 'objectclass=*'
Search for user id jperez in ou people:
ldapsearch -x -s one -b ou=people,dc=example,dc=com,dc=py \
-D "cn=Directory Manager" -W 'uid=jperez'
Search for all entries of class persons that does not has a telephonenumber associated:
ldapsearch -x -s one -b ou=people,dc=example,dc=com,dc=py \
-D "cn=Directory Manager" -W -H ldaps://fds1.example.com.py \
'(&(objectclass=person)(!(telephonenumber=*)))'
-x : Simple authentication
-s : Scope, "one, base, sub"
-b : Search base
-D : Bind DN
-H : Server URI (ldaps for SSL access)
Search filter:
AND search (&(attribute)(attribute))
OR search (|(attribute)(attribute))
NOT search (!(attribute))
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2006 05:55 PM
11-17-2006 05:55 PM
Re: LDAP
hi,
if you are using oracle, one example would be:
$ORACLE_HOME/bin/ldapsearch -p oid_port -h oid_hostname -D "cn=orcladmin"
-w orcladmin_password -b "orclresourcename=schema_name, orclreferencename=metadata_rep_global_db_name, cn=ias infrastructure databases,
cn=ias, cn=products, cn=oraclecontext" -s base "objectclass=*"
orclpasswordattribute
hope this helps too!
kind regards
yogeeraj
if you are using oracle, one example would be:
$ORACLE_HOME/bin/ldapsearch -p oid_port -h oid_hostname -D "cn=orcladmin"
-w orcladmin_password -b "orclresourcename=schema_name, orclreferencename=metadata_rep_global_db_name, cn=ias infrastructure databases,
cn=ias, cn=products, cn=oraclecontext" -s base "objectclass=*"
orclpasswordattribute
hope this helps too!
kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2026 Hewlett Packard Enterprise Development LP