Novell is now a part of Micro Focus

I need a script that will run on...

Articles and Tips: qna

01 Mar 2003


Q.

I need a script that will run on the Novell server to get all the users in the system in order to allow an external service to go through that list and validate users (manual process). The output of my query (users, etc.) should be a delimited file. The information I need for each user is:

Username, Userid, Server Name, Primary Group, Secondary Group, Privilege
Level, File Mounts,

and if available the following:

phone number,  department and supervisor.

Thanks for any pointers.

A.

You first have to decide whether you want to do this in Perl or in Nscript. Both have some limitations, but they mostly occur only when writing to NDS, and not when retrieving the information. However, from what I can see, you will have less trouble using the UCS/UCX components from Nscript. Personally I prefer Perl. Here's a site with some sample scripts that use UCX: http://www.gknw.de/nwperl/perlucx/

Below is link to a script that you can use to create a user. Retrieving this information is done in a similar way: http://www.gknw.de/nwperl/perlucx/mkuser.txt

* Originally published in Novell AppNotes


Disclaimer

The origin of this information may be internal or external to Novell. While Novell makes all reasonable efforts to verify this information, Novell does not make explicit or implied claims to its validity.

© Copyright Micro Focus or one of its affiliates