[prev in list] [next in list] [prev in thread] [next in thread] 

List:       nssldap
Subject:    Re: [nssldap] nsswitch & FreeBSD 5
From:       "James F. Hranicky" <jfh () cise ! ufl ! edu>
Date:       2005-05-12 11:11:22
Message-ID: 20050512071122.017a1b7f.jfh () cise ! ufl ! edu
[Download RAW message or body]

On Thu, 12 May 2005 11:39:29 +0930
"Daniel O'Connor" <doconnor@gsoft.com.au> wrote:

> > Should I be able to us the "pw" command line tool to look up users in
> > LDAP via nsswitch/nss ldap?

> You could probably compile getent from Linux on FreeBSD without many 
> modifications if you wanted to.

You could always just use perl:

	perl -e '@foo = getpwnam("someusername"); print "@foo\n"'
	perl -e '@foo = getgrnam("somegroupname"); print "@foo\n"'

	perl -e 'while (@foo = getpwent) {  print "@foo\n" }'

----------------------------------------------------------------------
| Jim Hranicky, Senior SysAdmin                   UF/CISE Department |
| E314D CSE Building                            Phone (352) 392-1499 |
| jfh@cise.ufl.edu                      http://www.cise.ufl.edu/~jfh |
----------------------------------------------------------------------
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic