- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: ldapsearch
Operating System - Linux
1753481
Members
3700
Online
108794
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
Discussions
Discussions
Forums
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
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
тАО04-21-2009 08:27 AM
тАО04-21-2009 08:27 AM
ldapsearch
I want to query our AD for the email address of a username; my Windows admins don't seem to be too clued up about how to query the AD and I get the following error when I attempt to use ldapsearch :
ldap_search: additional info: 00000000: LdapErr: DSID-0C090627
The problem would appear to be authentication but the available documentation is a bit sketchy on what is required - the Windoze admins are unhappy about creating a proxy user - so how do you supply credentials to ldapsearch.
Thanks in advance
Gordon
ldap_search: additional info: 00000000: LdapErr: DSID-0C090627
The problem would appear to be authentication but the available documentation is a bit sketchy on what is required - the Windoze admins are unhappy about creating a proxy user - so how do you supply credentials to ldapsearch.
Thanks in advance
Gordon
Older than the 840
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-22-2009 01:01 AM
тАО04-22-2009 01:01 AM
Re: ldapsearch
Well that might work on your installation but you obviously have something configured elsewhere - eg where is your -h ?
Older than the 840
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-22-2009 07:00 AM
тАО04-22-2009 07:00 AM
Re: ldapsearch
ldapsearch -b 'dc=your,dc=domain,dc=com' -D 'cn=binduser,...' -H ldap://domain.controller/ -W -x '(samaccountname=userid)'
The ldapsearch man page is your friend, but that's the general formula. I put all the common stuff in my ~/.ldaprc for convenience. I also use SSL, which requires that you specify the root CA chain in ldaprc (or ldap.conf).
The ldapsearch man page is your friend, but that's the general formula. I put all the common stuff in my ~/.ldaprc for convenience. I also use SSL, which requires that you specify the root CA chain in ldaprc (or ldap.conf).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-27-2009 02:43 AM
тАО04-27-2009 02:43 AM
Re: ldapsearch
Thank you everyone, I have actually solved it myself so for anyone else in the future this is how it is done.
ldapsearch -x -h "ip_address:port" \
-D "yourlogon@yourdomain" \
-w "yourdomainpassword"
-b "ou=accounts,dc=domain,dc=net"
"(sAMAccountName=whotolookfor)"
So for a Directory server on ip address 1.1.1.1 , domain windoze.net and we want to look up user billyg's mail address. You are user scriptman and your password is unixrules:
ldapsearch -x -h "1.1.1.1:389" \
-D "scriptman@windoze.net" -w "unixrules" \
-b "ou=accounts,dc=windoze,dc=net" \
"(sAMAccountName=billyg)" mail
Best of luck - Gordon
ldapsearch -x -h "ip_address:port" \
-D "yourlogon@yourdomain" \
-w "yourdomainpassword"
-b "ou=accounts,dc=domain,dc=net"
"(sAMAccountName=whotolookfor)"
So for a Directory server on ip address 1.1.1.1 , domain windoze.net and we want to look up user billyg's mail address. You are user scriptman and your password is unixrules:
ldapsearch -x -h "1.1.1.1:389" \
-D "scriptman@windoze.net" -w "unixrules" \
-b "ou=accounts,dc=windoze,dc=net" \
"(sAMAccountName=billyg)" mail
Best of luck - Gordon
Older than the 840
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP