Unix/Linux Go Back    


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Need ldap id

Solaris


Closed Linux or Unix Question    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 02-07-2013
Syed Imran Syed Imran is offline
Registered User
 
Join Date: Jan 2013
Last Activity: 14 March 2014, 4:22 AM EDT
Location: India
Posts: 33
Thanks: 1
Thanked 0 Times in 0 Posts
Need ldap id

Need to find the ldap id's of all the users in my organizations... is there any command???
Sponsored Links
    #2  
Old Unix and Linux 02-08-2013
Panzerkampfwagn Panzerkampfwagn is offline
Registered User
 
Join Date: Jan 2013
Last Activity: 7 November 2013, 4:07 AM EST
Location: Hanover,Lower Saxony,Germany
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
What´s with ldapsearch?


Code:
ldapsearch  -b "dc=example,dc=de" -h LDAPSERVER -p PORTNUMBER "(&(objectClass=posixAccount)(uid=*))"

The same + a grep filter (to see only the uid with name) :


Code:
ldapsearch  -b "dc=example,dc=de" -h LDAPSERVER -p PORTNUMBER "(&(objectClass=posixAccount)(uid=*))" | grep uid:

This is an example for a simple bind connection to the ldap-server. if u use SSL/TLS, so have a look at "man ldapsearch" for the correct syntax and extra options.
best regards

Last edited by Panzerkampfwagn; 02-08-2013 at 03:06 AM.. Reason: edit
Sponsored Links
    #3  
Old Unix and Linux 02-08-2013
Syed Imran Syed Imran is offline
Registered User
 
Join Date: Jan 2013
Last Activity: 14 March 2014, 4:22 AM EDT
Location: India
Posts: 33
Thanks: 1
Thanked 0 Times in 0 Posts

Code:
ldapsearch  -b "dc=example,dc=de" -h LDAPSERVER -p PORTNUMBER "(&(objectClass=posixAccount)(uid=*))" | grep uid:

---------- Post updated at 02:57 PM ---------- Previous update was at 02:57 PM ----------


Code:
ldap_search: Can't connect to the LDAP server - Unknown error

    #4  
Old Unix and Linux 02-08-2013
Panzerkampfwagn Panzerkampfwagn is offline
Registered User
 
Join Date: Jan 2013
Last Activity: 7 November 2013, 4:07 AM EST
Location: Hanover,Lower Saxony,Germany
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
How is your LDAP-Server configured ? Is it a Openldap-Server (config > slapd.conf)? Is anonymous Bind allowed or forbidden or an ACL ? How your clients connect to the ldap-server?
Sponsored Links
    #5  
Old Unix and Linux 02-10-2013
jlliagre jlliagre is offline Forum Advisor  
ɹǝsn sıɹɐlos
 
Join Date: Dec 2007
Last Activity: 29 August 2015, 3:38 AM EDT
Location: Paris
Posts: 4,606
Thanks: 17
Thanked 514 Times in 461 Posts
Quote:
Originally Posted by Syed Imran View Post
Need to find the ldap id's of all the users in my organizations... is there any command???
When connected to a Solaris LDAP client, you can run this command:

Code:
ldaplist passwd

To view all attributes, run
Code:
ldaplist -l passwd

Sponsored Links
Closed Linux or Unix Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
something like LDAP Administrator 2011.1 "LDAP-SQL" but for the CLI slashdotweenie UNIX for Advanced & Expert Users 2 03-23-2012 04:06 PM
help with LDAP n00b Solaris 5 06-24-2008 03:12 AM
LDAP help Katkota UNIX for Dummies Questions & Answers 0 12-06-2007 10:30 PM
Ldap dipanrc Linux 2 12-28-2005 07:09 PM
ldap hassan2 UNIX for Advanced & Expert Users 1 08-23-2002 02:56 PM



All times are GMT -4. The time now is 10:37 AM.