SUMMARY: sadmind & NIS+

From: Stuart Kendrick (sbk@fred.fhcrc.org)
Date: Thu Jul 17 1997 - 13:13:41 CDT


Original query: I wanted an API to AdminSuite which would allow me to
automate account creation -- specifically, creating home directories on
remote boxes.

I don't think Sun has published this API. However, AdminSuite ships with
command line tools which do this (command line equivalents to the GUI
functionality). admuseradd, admuserdel, others. I can call these from my
PERL scripts and automate account creation.

Thanks to Sun tech support,

--sk

Stuart Kendrick
Network Services
FHCRC

Original message:

I would like to automate user account creation through PERL scripts. I
have a script which does this -- creates scratch passwd, shadow, and
auto_home files, uses nisaddent to import them into the NIS+ space. The
missing piece is creating the user's home directory.

The Solstice GUI offers a check box for this ... but it seems to be
broken.

>From syslog:
Jul 9 11:52:47 gnat User Mgr: [uid=18602] Get user prototype
Jul 9 11:53:25 gnat User Mgr: [uid=18602] Adding user: test create
home(/export/home/test)=yes
Jul 9 11:53:25 gnat User Mgr: [uid=18602] Get User: test
Jul 9 11:53:26 bug1 syslog: sadmind: Request denied: type=PERFORM,
class=directory 2.1, method=view_dir
Jul 9 11:53:26 bug1 syslog: sadmind: Request denied: type=PERFORM,
class=directory 2.1, method=get_server_and_path
Jul 9 11:53:56 gnat User Mgr: [uid=18602] Delete User: test
delete_home=yes delete_box=yes
Jul 9 11:53:56 bug1 syslog: sadmind: Request denied: type=PERFORM,
class=directory 2.1, method=view_dir
Jul 9 11:53:57 gnat syslog: sadmind: Request started: type=PERFORM,
class=directory 2.1, method=view_dir
Jul 9 11:53:57 gnat syslog: sadmind: Request completed: type=PERFORM,
class=directory 2.1, method=view_dir

>From the log, you'd think the operation had succeeded; but in fact it
hasn't. The GUI reports a method failure.

I can neither create nor delete home directories via the GUI, unless they
are located on the box from which I am running Solstice.

Oh well, I really want a command line equivalent, I don't care if
the GUI is broken. Does anyone know of a way to create home directories
remotely? Most likely, I need an API to sadmind, I haven't found this
yet.

Solaris 2.5.1, AdminSuite 2.2, selection of latest patches

--sk

Stuart Kendrick
Network Services
FHCRC



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:59 CDT