![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| LDAP - is there an API | phykell | High Level Programming | 3 | 09-06-2008 05:03 AM |
| help with LDAP | n00b | SUN Solaris | 5 | 06-24-2008 03:12 AM |
| LDAP help | Katkota | UNIX for Dummies Questions & Answers | 0 | 12-06-2007 11:30 PM |
| ldap for aix | pascalbout | AIX | 0 | 07-27-2006 05:56 AM |
| Ldap | dipanrc | Linux | 2 | 12-28-2005 08:09 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
NIS+ to LDAP
After months of threats, we're finally migrating servers from NIS+ to LDAP.
I'm happy using niscat, nisgrep etc and now it seems I have to use ldapsearch which is far from being a simple CLI! Are there any easy (easier?) ways to interrogate the LDAP directory? ![]() Jerry |
|
||||
|
I already use getent for passwd, group etc. but it doesn't work for other tables (scsu, scsudo etc)
![]() Since my original post, I've come up with my own quick and dirty solution... The following has been added to my profile Code:
ldap() {
if [ -z $2 ] ; then
ldapsearch -h <host> -b ou=$1,dc=euruxdev,dc=dyn,dc=nsroot,dc=net objectclass='*'
else
ldapsearch -h <host> -b ou=$1,dc=euruxdev,dc=dyn,dc=nsroot,dc=net $2
fi
ldap <table> I get the whole lot, but I can add a filter with, for example ldap <table> cn=<entry> Jerry |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|