From: Rob McCool
Newsgroups: netscape.devs-nsapi
Subject: Re: Userids from ACL via NSAPI
Date: Thu, 19 Dec 1996 16:24:52 -0800
Andre Carrington wrote:
>
> It seems to me that there is no information regarding how to get
> the userids stored in an ACL, NSAPI or otherwise. But this is
> something that I would like, NSAPI or otherwise, programmatically.
>
> I thought of parsing the web admin-server's response to a browser
> client, but I couldn't easily formulate the correct URL to send
> to the admin-server to just get the page/frame showing the list
> of users for the database of interest. Especially if the database
> is not the one that shows up by default.
I got this from the developer who worked on the 2.0 ACLs, hope it helps.
--Rob
In extras/database, the shuser command will list out all the
users in a user database in /etc/passwd format (with some fields
empty). You can say:
shuser "*" /authdb/default
for example, to list all the users in the default user database.
shuser takes a username argument, which can be a (shexp) shell
expression, in which case the /etc/passwd-style output is produced.
If it's a particular username, the output format is formatted
more for human consumption. I haven't tried it, but I would
assume that you could use "username$" to get the /etc/passwd-style
output for a single username.
--
Rob McCool, robm@netscape.com http://home.netscape.com/people/robm/
Stunt Programmer, Netscape Communications Corporation
It was working ten minutes ago, I swear...
Reproduced by permission of the author.