summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Resolves: 223861Noriko Hosoi2007-01-291-2/+2
| | | | | | | Summary: Nightly build uses autotools/yum (Comment #11) Adding @libdir@ at the end of LIB_DIR and @bindir@:@bindir@:/usr/bin:/bin at the end of BIN_DIR in wrappers/ds_newinst.in. These additions are needed when invoking the utility using sudo.
* Resolves: bug 224672Rich Megginson2007-01-291-106/+28
| | | | | | | | | | | Bug Description: Get rid of key/cert db prefix Reviewed by: nhosoi (Thanks!) Fix Description: Now that we have everything in its own instance specific directory, we do not need the troublesome key/cert database prefix. This simplifies the slapd_nss_init code a great deal. Platforms tested: RHEL4 Flag Day: no Doc impact: YES - A couple of the pages on the wiki talk about slapd-instance-cert8.db and so on - these pages will have to change once FDS 1.1 is released
* Resolves: 223861Noriko Hosoi2007-01-2611-4616/+4752
| | | | | Summary: Nightly build uses autotools/yum (Comment #5) Change: Adding logconv.pl to Makefile.am
* Resolves: bug 224606Rich Megginson2007-01-264-100/+37
| | | | | | | | | | | | | | | Bug Description: Instance specific dirs should be in instance directory Reviewed by: nhosoi (Thanks!) Fix Description: Fixed create instance to create these instance specific directories: /var/lock/slapd-instance -> /var/lock/fedora-ds/slapd-instance /var/lib/slapd-instance -> /var/lib/fedora-ds/slapd-instance /var/log/slapd-instance -> /var/log/fedora-ds/slapd-instance /var/run/slapd-instance -> /var/run/fedora-ds For now, I'm side-stepping the question of what to do about permissions on /var/run/fedora-ds/slapd-instance.pid - we'll address this in the RPM creation. I've also moved the migration scripts to the %{_libdir}/fedora-ds/slapd-instance directory, and I've made the default directory for the key/cert db the same as the config directory. I think the dynamic nature of their configuration warrants the move. Platforms tested: RHEL4 Flag Day: no Doc impact: no
* Resolves: bug 224291Rich Megginson2007-01-255-6/+6
| | | | | | | | | | | Bug Description: Move script-templates from sysconfdir to datadir Reviewed by: nkinder, dennis (Thanks!) Files: see diff Branch: HEAD Fix Description: Just change sysconfdir to datadir in both the Makefile.am (which controls where the files are put during installation) and in create_instance.c (which controls where instance creation looks for the templates to use them to create the real scripts). Platforms tested: RHEL4 Flag Day: no Doc impact: no
* Resolves: bug 222398Rich Megginson2007-01-129-146/+342
| | | | | | | | | | | | | | | | | | | | | | | | | | | Bug Description: Allow building on Fedora Reviewed by: nhosoi (Thanks!) Fix Description: There are a few issues with building on Fedora (5 or later): 1) Need to be able to build with db4.2, db4.3, db4.4, etc. This version auto-detects the db version from the db.h file it finds. In order to use a different db version, just use configure --with-db=path or --with-db-inc=path that points to a different db.h 2) mozldap and svrcore are now part of Fedora, so we need to look for those components. Look for mozldap6 first to allow building on RHEL-4 as well. mozldap now includes libldif, so add that to the link line. svrcore-devel is now just svrcore - a svrcore runtime package and a svrcore-devel build time package. 3) FHS means FHS - /etc, /var/, prefix=/usr and exec_prefix=/usr. It doesn't make any sense to talk about FHS under a prefix. This means the default build will do /opt/fedora-ds/etc, var, lib, bin, share, and so on instead of /opt/fedora-ds/usr/etc. --with-fhs resets prefix=/usr and exec_prefix=/usr, and overrides the default settings for sysconfdir and localstatedir So, different build types: FHS - use configure --with-fhs - uses /etc, /var, /usr/lib, /usr/share, etc. Nothing - configure - uses /opt/fedora-ds/etc/, var/, bin/, lib/, etc. GNU style - configure --prefix=/usr/local - /usr/local/etc, /usr/local/bin, /usr/local/var, and so on Developers can use configure --prefix=/home/user/fds && make && make install to install local versions Platforms tested: FC-6 Flag Day: no Doc impact: no
* Resolves: #195305Noriko Hosoi2006-12-152-10/+291
| | | | | Summary: make new_task() non-static Adding a sample task plugin code and updating the README for the plugin.
* Resolves: #195305, #195307Noriko Hosoi2006-12-145-46/+97
| | | | | | | Summary: [195305] make new_task() non-static Changes: provide slapi_new_task and slapi_destroy_task as slapi APIs Summary: [195307] task registration by plugins is wiped by task_init() Changes: clean up old tasks before plugin_startall
* Resolves: #202843Noriko Hosoi2006-12-131-19/+1
| | | | | Summary: referential integrity plugin does not stack with Class of Service appliance (Comment #16) Changes: Don't call dblayer_close before plugin_closeall.
* Resolves: #202843Noriko Hosoi2006-12-121-0/+3
| | | | | Summary: referential integrity plugin does not stack with Class of Service appliance (Comment #14) Changes: Added the CoS plugin dependency to MMR.
* Resolves: #202843Noriko Hosoi2006-12-083-45/+149
| | | | | | | | Summary: referential integrity plugin does not stack with Class of Service appliance (Comment #11) Changes: 1) registered cos_post_op and roles_post_op as SLAPI_PLUGIN_INTERNAL_POST_op_FN functions. 2) changed the plugin type of CoS and Roles from "postoperation" to "object".
* Resolves: #183222Noriko Hosoi2006-12-071-9/+19
| | | | | Summary: Directory Server hangs when running VLV search and update operations simultaneously. (Comment#22) Change: Before creating db cursor, unlock vlvSearchList.
* Resolves: 217796Nathan Kinder2006-12-053-10/+51
| | | | Summary: Fix inconsistent clear password storage and ensure that SASL authentication uses passwords properly.
* Resolves: 158342Noriko Hosoi2006-12-043-12/+21
| | | | | | | | | | | | Summary: db backend path handling could be impoved to deal with "//", "..", etc. Changes: util.c: modified rel2abspath so that if the given path contains "//", calls the normalize function, and the normalize function eliminates the repeated separators. ldbm_config.c, ldbm_instance_config.c: before setting the nsslapd-directory paths, pass them to rel2abspath to clean up the paths.
* Resolves: bug 218076Rich Megginson2006-12-022-59/+117
| | | | | | | | | | | Bug Description: Server autoconf build crashes when stopped/started very quickly Reviewed by: nhosoi (Thanks!) Fix Description: The problem was that 3 of the database threads were being started and stopped before the 4th had a chance to start. So the thread count would start at 3 and drop to 0, and the dblayer_pre_close code would think everything was fine. The 4th thread is the checkpoint thread which was doing a db_checkpoint operation before incrementing the thread count. For some reason, on x86_64 with the system provided libdb-4.2, the checkpoint operation was taking longer than it usually does with our locally built libdb-4.2, so this allowed the other 3 threads to stop and start before the checkpoint thread had a chance to increment the thread count. The solution is to make sure the incrementing of the thread count occurs as early as possible in the thread function, before any executable code that might take any time. This should ensure that all of the threads start up and increment the thread count before the shutdown occurs. The second part of the solution is that, according to wtc, the NSPR maintainer, the PR_Atomic functions should not be used as a semaphore like this. So, the code was rewritten to use locks and condition variables. The code is not performance critical, so adding locking should not have any impact on performance. In addition, the new code is much cleaner, more correct, and more obvious about what it's doing. Platforms tested: RHEL4 x86_64 Flag Day: no Doc impact: no
* Resolves: #183222Noriko Hosoi2006-12-014-42/+65
| | | | | | | | | | | Summary: Directory Server hangs when running VLV search and update operations simultaneously. (Comment #16) Changes: 1. promoted idl_delete to global to make it available in vlv_trim_candidates_byvalue. In vlv_trim_candidate_byvalue, if any id's in the idlist is found not having the corresponding entry, delete the id from the idlist and retry the binary search. 2. demoted too noisy error message: - compare_entries db err -30990 3. not to include the db access code (cursor operation) inside of the read-lock in vlv_find_index_by_filter.
* Resolves: #216983Noriko Hosoi2006-11-281-13/+213
| | | | | | Summary: Make random password generation work with policies Changes: 1) Generate a password that meets the current password syntax rules. 2) Report errors when Min8Bit is set or MinCategories > 4
* I noticed a problem with the autoconf style builds that shows up on 64 bit - ↵Rich Megginson2006-11-280-0/+0
| | | | | | | | some of the scripts had /usr/lib/mozldap6 in the PATH, and some had /usr/lib64/mozldap6. All of them should have lib64. What was happening is that make would create some script templates from the corresponding template .in file, and some it would just copy over (those that have both a template-script and a template-script.in). The template-script files have hardcoded /usr/lib/ - it requires the conversion from template-script.in to template-script to substitute /usr/lib64/ instead. To solve this problem, I touched all of the *.in files so that they would have a later date than their corresponding template file, so that make would create the template-script from template-script.in. Make uses VPATH, and VPATH is used not only to look for dependencies, but also to find _targets_. So if the .in file is older than its template file, make will find ../ldap/admin/src/scripts/template-foo (the target) is newer than ../ldap/admin/src/scripts/template-foo (the dependency) and will think it is up to date. What should happen is that make should see that built/ldap/admin/src/scripts/template-foo does not exist, and create it from ../ldap/admin/src/scripts/template-foo.in, but apparently VPATH overrides that. This problem will go away once we remove all of the template-script files and just create all of them from the template-script.in files.
* Resolves: bug 217403Rich Megginson2006-11-271-5/+14
| | | | | | | | | Bug Description: Instance specific schema files should be owned by server uid Reviewed by: nkinder (Thanks!) Fix Description: Add a new function - ds_copy_group_files_using_mode_owner() - that allows you to set the file mode and owner when copying directories and files. Use that function when copying the schema files to the new instance directory. Platforms tested: RHEL4 Flag Day: no Doc impact: no
* Resolves: 212112Nathan Kinder2006-11-271-26/+59
| | | | Summary: Improved error messages for password syntax violations.
* Bug: 210947Rich Megginson2006-11-222-4/+10
| | | | | | | | | Description: parameterizing the hardcoded paths (phase 3. installed binaries, change log, setup) Fix Description: RHEL4 64 is not able to find ldapsearch because the ldapsdk_bindir is hardcoded to /usr/lib/mozldap6. We should get ldapsdk_bindir from pkg-config or just simply use $libdir/mozldap6. Added -o -z "$ldapsdk_bindir" check suggested by nhosoi Reviewed by: nhosoi (Thanks!)
* Bug(s) fixed: 216758Rich Megginson2006-11-2115-30/+64
| | | | | | | | | Bug Description: Use @libdir@ instead of hardcoded /usr/lib in template-script.in files Reviewed by: nkinder (Thanks!) Fix Description: Just replace /usr/lib with @libdir@ in the script template .in files. Platforms tested: RHEL4 Flag Day: no Doc impact: no
* Resolves: #216512Noriko Hosoi2006-11-211-5/+19
| | | | | Summary: replica initialization: random failure (Comment #1) Change: if acquire_replica is called for replica initialization, log REPLICA_BUSY.
* Resolves: bug 215995Rich Megginson2006-11-162-3/+4
| | | | | | | | | Bug Description: autoconf build needs to link replication plugin with libdb Reviewed by: nhosoi (Thanks!) Fix Description: Add $(DB_LINK) to the replication plugin in Makefile.am Platforms tested: RHEL4/FC5 Flag Day: no Doc impact: no
* Resolves: bug 214851Rich Megginson2006-11-154-1/+50
| | | | | | | | | | | | | | | Bug Description: integrating db43 into ds70 Reviewed by: nkinder (Thanks!) Fix Description: I took the original diffs posted by Ulf and merged them in with our code which has changed slightly since the diffs were originally generated. I also put #if directives like the following: #if 1000*DB_VERSION_MAJOR + 100*DB_VERSION_MINOR >= 4300 ... db43 features ... #else ... db42 features ... #endif so that we can use both db42 and db43. Platforms tested: RHEL4/FC5 Flag Day: no Doc impact: no
* Resolves: bug 215669Rich Megginson2006-11-1511-4670/+4513
| | | | | | | | | | | | | Bug Description: Define LIBDIR, BINDIR, etc. in Makefile Reviewed by: nkinder (Thanks!) Fix Description: The paths LIBDIR, BINDIR, et. al. are #define'd in create_instance.h to hard coded values. We should be able to set these values in configure and override the built in values. We can't simply set them via AC_DEFINE in configure.ac because we are using config.h and this would render the definition like this: #define BINDIR "${exec_prefix}/bin" instead of #define BINDIR "/usr/bin" So we instead define them in Makefile.am and add their definitions to AM_CPPFLAGS, and quote them properly to make sure the value includes the quotation marks when expanded in the C code. I tested this with both an rpmbuild and a regular developer type build. Platforms tested: RHEL4/FC5 Flag Day: no Doc impact: no
* Resolves: #215452Noriko Hosoi2006-11-153-46/+296
| | | | Summary: Replacing -D<DEFINE> with AC_DEFINE to reduce the compile command line length
* Auto-generated by autoheader; needs to be in CVS.Noriko Hosoi2006-11-141-0/+285
|
* Added -DIS_FHS; the old build only supports FHS.Noriko Hosoi2006-11-141-1/+1
|
* Resolves: #214533Noriko Hosoi2006-11-135-9/+293
| | | | | | | | | | Summary: configure needs to support --with-fhs (Comment #13) Changes: configure.ac: $prefix should have been @prefix@. $prefix is replaced with the value of --prefix, but not with AC_PREFIX_DEFAULT when --prefix is not given. create_instance.[ch]: depending upon the macro IS_FHS, change swich the LIBDIR, BINDIR, DATADIR, and DOCDIR. ds_newinst.pl.in: use @libdir@ to get the ds_newinst path.
* Resolves: #214533Noriko Hosoi2006-11-132-1/+10
| | | | | Summary: configure needs to support --with-fhs (Comment #10) Changes: if --with-fhs is set, bindir, libdir, and datadir starts w/ $prefix/usr
* Resolves: #214533Noriko Hosoi2006-11-105-83/+425
| | | | | | | Summary: configure needs to support --with-fhs (Comment #1) Changes: 1. introduced a new option --with-fhs 2. instead of passing the define macro with -D, generate config.h
* Resolves: #214533Noriko Hosoi2006-11-10834-5/+4208
| | | | | | | | | | Summary: configure needs to support --with-fhs (Comment #6) Changes: Added the following include next to the end of the copyright block. + +#ifdef HAVE_CONFIG_H +# include <config.h> +#endif +
* Package libsasl in core libdir for old style buildNathan Kinder2006-11-101-0/+1
|
* Bug: 214733Rich Megginson2006-11-101-2/+1
| | | | | | | | Description: be able to pass in all configurable paths to ds_newinst Fix Description: There were a couple of other minor problems with ds_newinst.pl 1) Should only set cgi parameters for those items which have a value 2) Should not setenv NETSITE_ROOT - this overrides prefix settings 3) Should not set prefix here - it is set elsewhere
* Resolves: #214728Noriko Hosoi2006-11-102-10/+3
| | | | | | | Summary: Cleaning up obsolete macros in the build Changes: eliminated macros(Comment #24) NS_DS, NET_SSL, DUPGRADEDB, NSPR20, LDAPDB_THREAD_SAFE, CLIENT_AUTH, MCC_HTTPD, NS_DOMESTIC, SPAPI20, SERVER_BUILD
* Resolves: #214728Noriko Hosoi2006-11-102-87/+0
| | | | | Summary: Cleaning up obsolete macros in the build Changes: eliminated macro CYRUS_SASL and BUILD_GSSAPI (Comment #23)
* Resolves: #214728Noriko Hosoi2006-11-103-14/+10
| | | | | Summary: Cleaning up obsolete macros in the build Changes: eliminated macro MCC_HTTPD (Comment #14)
* Resolves: #214728Noriko Hosoi2006-11-102-16/+0
| | | | | Summary: Cleaning up obsolete macros in the build Changes: eliminated macro CLIENT_AUTH (Comment #12)
* Resolves: #214728Noriko Hosoi2006-11-101-1/+1
| | | | | Summary: Cleaning up obsolete macros in the build Changes: eliminated macro LDAPDB_THREAD_SAFE (Comment #11)
* Resolves: #214728Noriko Hosoi2006-11-101-7/+0
| | | | | Summary: Cleaning up obsolete macros in the build Changes: eliminated macro LDAPDB_THREAD_SAFE (Comment #10)
* Resolves: #214728Noriko Hosoi2006-11-107-60/+1
| | | | | Summary: Cleaning up obsolete macros in the build Changes: eliminated macro NSPR20 (Comment #8)
* Resolves: #214728Noriko Hosoi2006-11-1046-55/+4
| | | | | Summary: Cleaning up obsolete macros in the build Changes: eliminated macro NSPR20 (Comment #9)
* Resolves: #214728Noriko Hosoi2006-11-1013-50/+0
| | | | | Summary: Cleaning up obsolete macros in the build Changes: eliminated macro UPGRADEDB (Comment #6)
* Resolves: #214728Noriko Hosoi2006-11-1020-167/+8
| | | | | Summary: Cleaning up obsolete macros in the build Changes: eliminated macro NET_SSL (Comment #5)
* Resolves: #214728Noriko Hosoi2006-11-101-4/+1
| | | | | Summary: Cleaning up obsolete macros in the build Changes: eliminated macro NET_SSL and UPGRADEDB (Comment #5, #7)
* Resolves: #214728Noriko Hosoi2006-11-1010-67/+123
| | | | | Summary: Cleaning up obsolete macros in the build Changes: eliminated macro NS_DS (Comment #2, #3)
* Resolves: #214728Noriko Hosoi2006-11-101-20/+10
| | | | | Summary: Cleaning up obsolete macros in the build Changes: eliminated macro NS_DS (Comment #3, #5, #9, #13, #15, #17)
* Resolves: #214840Noriko Hosoi2006-11-091-16/+25
| | | | | | | | | | | | Summary: modify sasl_path to accept the string set in the inf file Changes: If sasl_path is set in [slapd] section in the inf file, it's put in dse.ldif like this: dn: cn=config [...] nsslapd-saslpath: /usr/local/lib If the inf file does not have the line, the default path <prefix>/usr/lib/<brand_ds>/sasl2 is put in dse.ldif on non-Linux platform.
* Bug: 214733Rich Megginson2006-11-091-0/+19
| | | | | | | | | | | | | | Description: be able to pass in all configurable paths to ds_newinst Reviewed by: nhosoi (Thanks!) Fix Description: Just add all of the paths that are set-able in create_instance.c to ds_newinst.pl. The paths will be parsed from the input .inf file e.g. config_dir= /path/to/config sysconfdir= /path/to/sysconf etc. in the [slapd] section. I also added sasl_path as suggested by Noriko: + $cgiargs{"sasl_path"} = $table{"slapd"}->{"sasl_path"}; Tested on: RHEL4