Author: rmeggins
Update of /cvs/dirsec/adminserver/admserv/schema/ldif
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv30934/adminserver/admserv/schema/ldif
Modified Files:
11dstasks.ldif.tmpl 15dspta.ldif.tmpl.in
Log Message:
Resolves: bug 246683
Bug Description: Reimplement ds_create without setuputil code
Reviewed by: nhosoi (Thanks!)
Fix Description: ds_create was a CGI program that would create a new instance, set it up
to be managed by console, and register it with the config ds. The new ds_create CGI perl
script does just that. One tricky part was that, rather than enabling the pass through
auth plugin and having to restart the server, the new server is created without being
started, then the modification is done to the new server dse.ldif file directly, using the
new FileConn.pm module, which simulates a Mozilla::LDAP::Conn on an LDIF file. This also
allows us to create a new instance with a pre-hashed rootdn password, rather than having
to send the cleartext password.
I had to move around some code in AdminServer and AdminUtil so that I could use it from
ds_create. I also implemented support for the admin server PASSWORD_PIPE in perl so we
could use it in other CGI perl scripts.
Finally, the error handling was not consistent in our code, so I made explicit the passing
of error messages up and down the stack. Oh how I wish we could just do this in python
and use exception handling . . .
I added a test for ds_create.
Platforms tested: RHEL4
Flag Day: Yes - autotool changes
Doc impact: No. Should work the same way as the old ds_create.
Index: 11dstasks.ldif.tmpl
===================================================================
RCS file: /cvs/dirsec/adminserver/admserv/schema/ldif/11dstasks.ldif.tmpl,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- 11dstasks.ldif.tmpl 27 Jun 2007 22:25:00 -0000 1.3
+++ 11dstasks.ldif.tmpl 4 Jul 2007 01:31:33 -0000 1.4
@@ -180,7 +180,7 @@
objectClass: top
objectClass: nstask
objectClass: nsAdminObject
-nsExecRef: ds_newinst
+nsExecRef: ds_create
cn: Create
dn: cn=GetConfigInfo, cn=Operation, cn=Tasks, cn=%brand% Directory Server, cn=Server
Group, cn=%fqdn%, ou=%domain%, o=NetscapeRoot
Index: 15dspta.ldif.tmpl.in
===================================================================
RCS file: /cvs/dirsec/adminserver/admserv/schema/ldif/15dspta.ldif.tmpl.in,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- 15dspta.ldif.tmpl.in 28 Jun 2007 18:41:29 -0000 1.1
+++ 15dspta.ldif.tmpl.in 4 Jul 2007 01:31:33 -0000 1.2
@@ -22,11 +22,11 @@
objectClass: nsSlapdPlugin
objectClass: extensibleObject
cn: Pass Through Authentication
-nsslapd-pluginPath: @dslibdir(a)/plugins/libpassthru-plugin.so
+nsslapd-pluginPath: libpassthru-plugin
nsslapd-pluginInitfunc: passthruauth_init
nsslapd-pluginType: preoperation
nsslapd-pluginEnabled: on
-nsslapd-pluginarg0: %config_ds_url%/o%3DNetscapeRoot
+nsslapd-pluginarg0: %config_ds_url%
nsslapd-plugin-depends-on-type: database
nsslapd-pluginId: passthruauth
nsslapd-pluginVersion: %ds_version%
Show replies by date