Modify dse.ldif using commands

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

 



Juan Asensio S?nchez wrote:
> If this can help somebody, I have posted an example of script to 
> modify the dse.ldif. The server must be stopped before running the 
> script (before modifying manually dse.ldif):
>
> http://pastebin.com/QmpHF2n2
You code similar to this in several places:

   1.
              my $entries_count = 1;
   2.
              while ($conn->nextEntry())
   3.
              {
   4.
                  $entries_count++;
   5.
              }
   6.
       
   7.
              if ($entries_count == 1)

I don't think you need to do this, but it shouldn't harm anything.

Otherwise, looks good.
>
> Regards.
>
> 2010/6/21 Ulf Weltman <ulf.weltman at hp.com <mailto:ulf.weltman at hp.com>>
>
>     It's not required to stop the server and manually edit dse.ldif to
>     change nsslapd-cachememsize (entry cache size).  Additionally,
>     changing this parameter over LDAP takes effect immediately, no
>     restart required.  Maybe you were thinking of other parameters?
>
>
>     On 6/21/2010 5:07 AM, Juan Asensio S?nchez wrote:
>>     OK, I'll take a look.
>>
>>     Thanks.
>>
>>     2010/6/15 Rich Megginson <rmeggins at redhat.com
>>     <mailto:rmeggins at redhat.com>>
>>
>>         Juan Asensio S?nchez wrote:
>>         > Hi
>>         >
>>         > To modify some parameters of the conguration, like
>>         > nsslapd-cachememsize, it is required to stop the server and
>>         manually
>>         > change the setting in the dse.ldif. Is there any
>>         way/command/utility
>>         > to modify that file without using grep and sed? I say this
>>         because
>>         > when doing this, we must be careful to check if the
>>         attribute is
>>         > defined, if not create or replace its value using sed; or
>>         change that
>>         > value only for certain databases, not for all. It should be
>>         like an
>>         > ldapmodify, but not using an LDAP server, just loading the
>>         specified
>>         > dse.ldif file and applying the changes specified in other
>>         ldif file.
>>         >
>>         > Any suggestion? Regards.
>>         If you are a perl hacker, you could use the FileConn.pm perl
>>         module
>>         provided with 389-ds-base.
>>         >
>>         ------------------------------------------------------------------------
>>         >
>>         > --
>>         > 389 users mailing list
>>         > 389-users at lists.fedoraproject.org
>>         <mailto:389-users at lists.fedoraproject.org>
>>         > https://admin.fedoraproject.org/mailman/listinfo/389-users
>>
>>         --
>>         389 users mailing list
>>         389-users at lists.fedoraproject.org
>>         <mailto:389-users at lists.fedoraproject.org>
>>         https://admin.fedoraproject.org/mailman/listinfo/389-users
>>
>>
>
>     --
>     389 users mailing list
>     389-users at lists.fedoraproject.org
>     <mailto:389-users at lists.fedoraproject.org>
>     https://admin.fedoraproject.org/mailman/listinfo/389-users
>
>
> ------------------------------------------------------------------------
>
> --
> 389 users mailing list
> 389-users at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/389-users



[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