fds 1.1+ not setting nsslapd-instancedir on install?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ryan Braun [ADS] wrote:
> On Wednesday 10 September 2008 17:30, Rich Megginson wrote:
>   
>>>> Well, it depends - what were you using nsslapd-instancedir for?  There
>>>> are several other attributes you could use now, depending on what you're
>>>> trying to do.
>>>>         
>>> I was using nsslapd-instancedir to as the ref point on where to put the
>>> changelog db files.  Which by default in the console (1.1+)
>>> is /var/lib/dirsrv/slapd-INSTANCE/changelog.
>>>       
>> If you want the changelog directory, use nsslapd-directory, and see
>> http://www.redhat.com/docs/manuals/dir-server/cli/8.0/Configuration_Command
>> _File_Reference-Plug_in_Implemented_Server_Functionality_Reference-Database_
>> Plug_in_Attributes.html#Configuration_Command_File_Reference-Database_Attrib
>> utes_under_cnconfig_cnldbm_database_cnplugins_cnconfig-nsslapd_directory
>>
>> when you grab that attribute, just replace /db$ with /cldb to construct
>> the changelog directory.
>>
>>     
>
> Roger that,  got it working with 
>
> 	##############################
> 	# find the instance-dir
> 	##############################
> 	$msg = $ldap->search (
>                           base    => "cn=config, cn=ldbm database, cn=plugins, cn=config",
> 			  scope   => "sub",
>                           filter  => "(objectClass=*)",
>                          );
>
> 	my $instance_dir = $msg->entry(0)->get_value("nsslapd-directory");
> 	if (!defined($instance_dir)) {
> 		print "Unable to determine the instancedir,  pretty big issue,  puking\n";
> 		exit 1;
> 	}
> 	$instance_dir =~ s/\/db//;
>   
I would suggest using \/db$, but otherwise, yes, that's it.  It's not 
really an instance dir anymore, more like a database instance dir - you 
will find under there the db dir, the changelog db dir, the default ldif 
db export dir, and the default db backup dir.
> Thanks Rich.
>
> Ryan
>
> --
> Fedora-directory-users mailing list
> Fedora-directory-users at redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-directory-users
>   

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3258 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.fedoraproject.org/pipermail/389-users/attachments/20080911/a0621924/attachment.bin 


[Index of Archives]     [Fedora User Discussion]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora News]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora QA]     [Fedora Triage]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Yosemite Photos]     [Linux Apps]     [Maemo Users]     [Gnome Users]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Maemo Users]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Fedora ARM]

  Powered by Linux