summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* using ldap also pulls in nss and nspr, so we have to add those - also, put ↵Rich Megginson2007-08-093-3/+4
| | | | those first in the link line, so that the build finds the dirsec versions of those components and not the mozilla/seamonkey ones in libdir
* Resolves: bug 251227Rich Megginson2007-08-091-1/+1
| | | | | Description: Update dsktune for 1.1 Updated the date.
* Resolves: bug 251227Rich Megginson2007-08-091-271/+140
| | | | | Description: update dsktune for 1.1 These are the latest Solaris patches.
* revert back to using autoconf 2.59 - 2.61 causes the -avoid-version flag to ↵Rich Megginson2007-08-099-7891/+6884
| | | | be ignored, which causes rpm packaging errors
* forgot to commit the autotool generated filesRich Megginson2007-08-0811-6886/+7894
|
* Resolves: 251262Nathan Kinder2007-08-084-88/+217
| | | | Summary: Changed ldap-agent to find location of stats file dynamically.
* The arguments to memset were in the wrong order. This code is only used on ↵Rich Megginson2007-08-081-1/+1
| | | | Windows.
* Resolves: #251090Noriko Hosoi2007-08-071-8/+29
| | | | | | Summary: ds_remove cannot remove/rename directories (Comment #2) Description: when creating inst_dir and config_dir, make sure the parent dirs (lib/<brand>-ds and etc/<brand>-ds) have the specified gid.
* Resolves: bug 251227Rich Megginson2007-08-071-5/+11
| | | | | Description: Update dsktune for 1.1 Fix Description: This is for HP-UX 11.23 IPF 64bit
* Resolves: bug 237356Rich Megginson2007-08-062-1/+26
| | | | | | Description: Move DS Admin Code into Admin Server - dsktune Fix Description: This adds the dsktune dialog to the initial list of setup dialogs. Platforms tested: RHEL4
* Resolves: #250702Noriko Hosoi2007-08-034-237/+416
| | | | Summary: not all the addresses associated with listenhost are bound to listen sockets (comment #10)
* Resolves: bug 250535Rich Megginson2007-08-029-267/+59
| | | | | | | | | | Bug Description: improve perldap script execution ability on bundled platforms Reviewed by: nkinder (Thanks!) Fix Description: Most platforms will just use perl from PATH. However, on Solaris and HP-UX, we have to use special 64 bit versions to execute perldap, since perldap is 64 bit on those platforms. Also, if bundling all of the dependent components into the single package, we need to make sure the perl library path is set correctly to find perldap. The last step will be to build our version of perldap on the bundled platforms to use rpath to point to the correct runtime library location. Platforms tested: RHEL4, HP-UX 11.23 IPF 64 bit Flag Day: no Doc impact: no
* Resolves: #250347Noriko Hosoi2007-08-013-5/+18
| | | | | Summary: rsearch - make search timeout a configurable parameter Description: Introduced a new option "-o <search time limit>"
* Resolves: #249739Noriko Hosoi2007-07-273-1/+10
| | | | Summary: Implement a script registering DS to the Configuration DS (comment#5)
* Resolves: #249722Noriko Hosoi2007-07-261-0/+1
| | | | | Summary: restart-slapd has an unreplaced token {{INST-DIR}} Description: hash key, value: INST-DIR => $inf->{slapd}->{inst_dir} is added
* Resolves: bug 249633Rich Megginson2007-07-251-1/+2
| | | | | Description: setup-ds.pl should create default org entries Fix Description: Make the default in interactive mode to be to add those entries.
* Resolves: bug 249470Rich Megginson2007-07-252-37/+4
| | | | | | | | | Bug Description: cn equality index missing by default Reviewed by: nhosoi (Thanks!) Fix Description: When creating the database instance during dse.ldif processing, we do not create the user defined indexes from the defaults for this backend. This used to work in the old setup code because that code would always add the configuration for the indexes for the new instance. The way it is supposed to work is that a new instance should just copy the default indexes for that backend. This works fine when adding an instance via LDAP but not during startup. I just added a call to have this done during startup. I also removed some obsolete indexes from the default indexes. Platforms tested: RHEL4 Flag Day: no Doc impact: no
* forgot to tell Makefile.am about removed obsolete filesRich Megginson2007-07-242-6/+0
|
* removed more obsolete filesRich Megginson2007-07-2318-970/+0
|
* move setup-ds.pl and migrate-ds.pl to sbindirFedoraDirSvr110a4_20070720FedoraDirSvr110a4Rich Megginson2007-07-202-18/+43
|
* Resolves: bug 248820Rich Megginson2007-07-191-1/+4
| | | | | | | | | Bug Description: quick install failed when login userid doesn't match install user's id Reviewed by: me Fix Description: getlogin returns the _login_ ID which is the initial login id (from utmp). We want the username of the effective user ID, so I just needed to change getLogin to do that. Platforms tested: RHEL4 Flag Day: no Doc impact: no
* Resolves: bug 248145Rich Megginson2007-07-1874-42362/+46
| | | | | | | | | Bug Description: Replace ds_newinst binary with perl script - remove dead code Reviewed by: nhosoi (Thanks!) Fix Description: This is my favorite part - removing all of the now dead code. I also had to fix the exit code so that you could use $? to test for the success or failure of the new setup scripts. Platforms tested: RHEL4, FC6 Flag Day: no Doc impact: no
* Resolves: bug 248272Rich Megginson2007-07-161-6/+7
| | | | | | Description: CLU: dbgen.pl fails to load data files Reviewed by: nhosoi (Thanks!) Fix Description: dbgen.pl is hardcoded to look for data files in ../data. Instead, we should allow the user to provide the location to the data files e.g. -l /path/to/data, and we should also use share/brand-ds/data as the default directory.
* Resolves: bug 248145Rich Megginson2007-07-134-11/+26
| | | | | | | | | | Bug Description: Replace ds_newinst binary with perl script Reviewed by: nhosoi (Thanks!) Fix Description: 1) Inf needs to be able to read the .inf file from stdin. This is what ds_newinst.pl does currently. 2) getlogin seems not to work in all cases, so add a more robust replacement. Platforms tested: RHEL4, FC6 Flag Day: no Doc impact: no
* Resolves: bug 248145Rich Megginson2007-07-1326-118/+1321
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug Description: Replace ds_newinst binary with perl script Reviewed by: nhosoi (Thanks!) Fix Description: The time has come. We can finally get rid of the instance creation C code once and for all. I've created a DSCreate module that has all of the functionality of the old create_instance.c code, along with a few items from ldap/admin/lib. The way it works is this: it first creates the dse.ldif file using template-dse.ldif and the suffix-db template to create the initial db and suffix. It then adds additional optional configuration depending on what optional features have been enabled. It creates other config files and copies in the schema. It then initializes the database. It uses a template file based on the type of entry implied by the suffix, then adds the default ACIs. If the user chose to do so, it will also create the ou=people, ou=groups, etc. entries. The user can also supply an LDIF file which will be used to populate the initial database, in which case none of the default entries or ACIs will be used. It then starts the server (if desired). I had to create a function makePaths that works like mkdir -p except that it will chown, chgrp, and chmod all paths created. I had to change the other places where instance creation was called to use the new calling semantics. ds_create changed quite a bit, since it can just use an Inf to pass in the information instead of calling ds_newinst as a CGI program. I had to change FileConn to add support for namingContexts (i.e. entries with no parent), and to have it write each change each time, and to return copies of entries when searching, to avoid modifying the tree in place. This makes it act much more like LDAP. I found and fixed a few bugs in Migration along the way that were revealed while integrating the new DSCreate code. Platforms tested: RHEL4, FC6 Flag Day: Yes. New instance creation code and autotool changes. Doc impact: no
* Resolves: bug 245815Rich Megginson2007-07-128-190/+517
| | | | | | | | | | | | | | Bug Description: DS Admin Migration framework - cross platform support Reviewed by: nhosoi (Thanks!) Fix Description: There are basically three parts to cross platform support 1) Allow a different physical server root than the logical server root. This allows you to copy the old server root directory to the target machine, either by making a tarball or by a network mount. Then you can migrate from e.g. /mnt/opt/fedora-ds, and specify that the real old server root was /opt/fedora-ds. This is the distinction between the --oldsroot and --actualsroot parameters. 2) Cross platform database migration requires the old data is converted to LDIF first. Migration makes the simplifying assumption that the database LDIF file is in the old db directory and has the name of <old backend name>.ldif e.g. userRoot.ldif 3) Cross platform replication migration doesn't preserve the state, so the changelog nor other associated state information can be migrated. I rewrote the old migration script to use the FileConn - this theoretically will allow us to support migration using an LDAP::Conn as well. I had to make some fixes to FileConn, primarily to support the root DSE. Platforms tested: RHEL4 Flag Day: no Doc impact: Yes, along with the rest of the new migration framework.
* Resolves: #247725Noriko Hosoi2007-07-111-1/+1
| | | | | | | Summary: rhds71 Invalid LDIF Syntax crashes directory server (comment #18) Description: The problem was if an RDN ends with '\\', strcpy_special_undo did not check if there is no more character, and incremented the pointer beyond the end and accessed the address.
* Resolves: #247215Noriko Hosoi2007-07-114-0/+13
| | | | | | Summary: Reimplement ds_remove without setuputil code (comment #6) Description: adding nsslapd-instancedir to dse.ldif for ds_remove to find out the instance dir path.
* Resolves: #247215Noriko Hosoi2007-07-061-35/+47
| | | | | | Summary: Reimplement ds_remove without setuputil code (comment #1) Description: 1) introduced delete entry operation. 2) cleaned up check_and_add code
* Resolves: #246690Noriko Hosoi2007-07-055-6/+117
| | | | | Summary: feature request for ldclt: add randomauthid for testing Description: Adding randomauthid options: -e "randomauthid" -e "randomauthidlow=<low>" -e "randomauthidhigh=<high>"
* Resolves: bug 246683Rich Megginson2007-07-048-32/+451
| | | | | | | | | | | | 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.
* Added nsslapd-ldifdir and nsslapd-bakdirRich Megginson2007-06-291-0/+2
|
* Resolves: bug 245815Rich Megginson2007-06-2915-169/+1136
| | | | | | | | | | | Description: DS Admin Migration framework Reviewed by: nhosoi (Thanks!) Fix Description: Created a Migration class that is very similar to the Setup class - to act as a sort of global context for the migration process. Moved most of the guts of migrateTo11 into the new DSMigration class and the new migrate-ds.pl - we should deprecate migrateTo11 in favor of migrate-ds.pl. I had to enhance the check_and_add_entry function to handle pseudo-LDIF change records - pseudo because mozilla perldap LDIF has no real LDIF change record support. Fixed a bug in create_instance.c - creating an instance without starting it was not working if the port number of an existing directory server was supplied. Added a new method createDSInstance to Util - this just wraps ds_newinst.pl for now. Platforms tested: RHEL4 Doc: Yes. We will need to document the migration procedures. Flag day: Yes. Autotool file changes.
* Resolves: #244749Noriko Hosoi2007-06-282-77/+11
| | | | | | | Summary: Configure Pass Thru Auth (comment #28) Descri[tion: 1) removing the dependency on the config_ds 2) ds_newinst always adds "cn=Pass Through Authentication" with the nsslapd-pluginEnabled value off.
* Resolves: #245407Noriko Hosoi2007-06-221-0/+2
| | | | | | Summary: Add config attributes to cn=config to support Console (comment #1) Description: Console needs to know the default paths for ldif_dir and bak_dir. Adding the paths to cn=config.
* Resolves: #245407Noriko Hosoi2007-06-223-0/+87
| | | | | | Summary: Add config attributes to cn=config to support Console (comment #1) Description: Console needs to know the default paths for ldif_dir and bak_dir. Adding the paths to cn=config.
* Resolves: #244749Noriko Hosoi2007-06-217-187/+73
| | | | | | | | Summary: Configure Pass Thru Auth (comment #8, #9) Description: 1) Introducing BaseVersion (*.inf files) via PACKAGE_BASE_VERSION (configure.ac) to generate #.# format version number from #.#.#. The #.# format version number is used in the jar file names 2) Updated Util.pm.in to include ACIs to the search result.
* Resolves: #244749Noriko Hosoi2007-06-201-175/+257
| | | | | | Summary: Configure Pass Thru Auth (comment #4) Description: modifying check_and_add_entry to support ldifmodify format. plus added minor fixes for comparing entries
* remove obsolete filesRich Megginson2007-06-20241-47882/+5
|
* Resolves: bug 237356Rich Megginson2007-06-203-1/+10
| | | | | | | | | | Description: Move DS Admin Code into Admin Server - navigation Fix Description: Some minor cleanup: 1) Fixed navigation. Now you can go back through several dialogs. 2) Need to create a new Inf even if no file given Platforms tested: RHEL4 Flag Day: No. Doc impact: No.
* Resolves: bug 237356Rich Megginson2007-06-203-10/+15
| | | | | | | | | | | Description: Move DS Admin Code into Admin Server - Inf, ds_newinst.pl Fix Description: Some minor cleanup: 1) Setup must not write to the user supplied inf file. Setup uses the user supplied inf to initialize its cache, but creates a tempfile for writing. 2) When writing an Inf, preserve the continuation lines. 3) Added Noriko's fix for suffix generation to ds_newinst.pl Platforms tested: RHEL4 Flag Day: No. Doc impact: No.
* Resolves: bug 237356Rich Megginson2007-06-192-2/+2
| | | | | | | | Bug Description: Move DS Admin Code into Admin Server - admin server setup Fix Description: Allow the use of '-' and '_' in section and parameter names when passing in inf parameters via the command line. Platforms tested: RHEL4 Flag Day: no Doc impact: no
* Resolves: #237356Noriko Hosoi2007-06-191-0/+1
| | | | | Summary: Move DS Admin Code into Admin Server Description: fixing the default suffix: dc=<host>, dc=<dc1>, dc=<dc2>, dc=<dc3> ===> dc=<dc1>, dc=<dc2>, dc=<dc3>
* Resolves: bug 237356Rich Megginson2007-06-1922-135/+1329
| | | | | | | | | | | | | | Description: Move DS Admin Code into Admin Server - ldif templates, pwdhash Reviewed by: nhosoi (Thanks!) Fix Description: These changes are primarily to allow the admin server setup to run completely in perl with no more setuputil code. 1) Added LDIF templates for DS config. template-dse.ldif is the core minimal directory server configuration. Values can be replaced with parameters in the same style as used with register_server.pl - %token%. For the plugin entries, the plugin shared library name is now just a name. There is no more full path. The code in dynalib.c handles this case by using the compiled in PLUGINDIR. The NSPR function PR_GetLibraryName knows the correct shared lib suffix for the platform. All of this allows us to do 2). 2) Added ability to run pwdhash with no server configuration. If no configuration is given, it uses the template-dse.ldif above. And instead of having to worry about where the plugins are installed and the shared lib suffix, it just depends on the above changes. This allows us to generate password hashes during setup before the directory server instance is created, and also to keep clear text password usage to a minimum. 3) Added defaultuser and defaultgroup. 4) Added support for continuation lines in Inf files. 5) All user visible messages during setup should be localizable Platforms tested: RHEL4 Flag Day: Yes, autotool file changes. Doc impact: Yes, along with the previous fixes for this bug.
* Resolves: bug 237356Rich Megginson2007-06-158-34/+625
| | | | | | | | | | | | Description: Move DS Admin Code into Admin Server Reviewed by: nhosoi (Thanks!) Fix Description: 1) Since we moved the o=NetscapeRoot code out of cfg_sspt.c, we no longer need to create the suffix and backend in create_instance.c 2) Added code to enable/disable dialogs e.g. for dialogs that can change the flow conditionally 3) Added code to allow the user to backup to the first prompt on a dialog, for dialogs with many prompts 4) Allow continuation lines in Resource files, instead of having to have embedded \n chars. This allows easier editing and layout. 5) Added an addSuffix function 6) Moved the register_servers.pl code from admin server into DS Util.pm and made it a little more general purpose. Platforms tested: RHEL4
* Summary: Move DS Admin Code into Admin Server (Comment #62)Noriko Hosoi2007-06-151-126/+14
| | | | Description: providing slapd.inf having the DS static info for the setup/config
* Resolves: 237356Noriko Hosoi2007-06-156-250/+266
| | | | | Summary: Move DS Admin Code into Admin Server (Comment #62) Description: providing slapd.inf having the DS static info for the setup/config
* Resolves: #237356Noriko Hosoi2007-06-1314-1993/+5
| | | | | | | Summary: Move DS Admin Code into Admin Server (Comment #54) Description: 1) eliminated the code adding o=netscaperoot related entries from cfg_sspt.c. 2) moving DS task CGIs to the adminserver.
* Summary: Removed unused source files.Nathan Kinder2007-06-127-808/+0
|
* Resolves: bug 237356Rich Megginson2007-06-122-6/+18
| | | | | | | | Description: Move DS Admin Code into Admin Server Fix Description: 1) Need to have $SILENT be greater than $CUSTOM so that dialog hiding works properly. 2) Need to have the ability to hide or show individual prompts in a dialog e.g. if using TLS/SSL, need to ask for the CA certificate filename, otherwise, not. 3) Need the ability to call a function to get the default yes or no answer for DialogYesNo 4) DialogYesNo should match answer case insensitively