Anand Vaddarapu wrote:
The local directory server information is stored under cn=config. With the mozldap ldapsearch command: /usr/lib/mozldap/ldapsearch -T -D "cn=directory manager" -w yourpassword -s sub -b cn=config | grep youroldhostnameHi Rich, I have installed centos 5.1 and FDS 1.1.
Use the -T option to disable LDIF line wrapping - otherwise you will have to use sed/perl to re-fold the lines for grep to work.
Use a similar command to identify places under o=NetscapeRoot in your configuration directory server: /usr/lib/mozldap/ldapsearch -T -h configdshost -p configdsport -D "cn=directory manager" -w yourpassword -s sub -b o=NetscapeRoot | grep youroldhostname
You must identify the entry and the attribute. Then, using ldapmodify: dn: the dn of the entry changetype: modify replace: theattributename theattributename: the new value with the new hostnameEdit /etc/dirsrv/admin-serv/adm.conf - update your ldap server hostname - you will then have to restart the admin server.
Thanks vivekOn Feb 12, 2008 8:37 AM, Richard Megginson <rmeggins@xxxxxxxxxx <mailto:rmeggins@xxxxxxxxxx>> wrote:Anand Vaddarapu wrote: > Hi Rich, > > How can i change hostname for different places in config files and in > configuration > entries under o=NetscapeRoot in the configuration directory server and > under cn=config in each local directory server. There is no documented procedure. What version of Fedora DS? > > Thanks in advance. > Vivek > > On Feb 12, 2008 4:17 AM, Richard Megginson <rmeggins@xxxxxxxxxx <mailto:rmeggins@xxxxxxxxxx> > <mailto:rmeggins@xxxxxxxxxx <mailto:rmeggins@xxxxxxxxxx>>> wrote: > > Anand Vaddarapu wrote: > > Hi, > > > > I am trying to access console from another computer but same > network. > > I am receiving following error " Can not connect to the Directory > > Server "ldap://localhost.localdomain:389", LDAP error: failed to > > connect to server ldap://localhost.localdomain:389. > > > > would you like to attempt to restart the Directory Server? > > > > I installed FDS with default "localhost.localdomain". later i > changed > > the hostname. > Herein lies the problem. The hostname that you provide during > setup is > written in many different places in config files and in configuration > entries under o=NetscapeRoot in the configuration directory server and > under cn=config in each local directory server. So you will have to > change all of these if you really want to change your hostname. > Or just > start over. > > and i also trying to set host IP address using ldapmodify. But same > > results. > > > > any ideas and suggestions. > > > > thanks in an advance. > > Vivek > > > >> ------------------------------------------------------------------------> > > > -- > > Fedora-directory-users mailing list > > Fedora-directory-users@xxxxxxxxxx <mailto:Fedora-directory-users@xxxxxxxxxx> > <mailto:Fedora-directory-users@xxxxxxxxxx <mailto:Fedora-directory-users@xxxxxxxxxx>> > > https://www.redhat.com/mailman/listinfo/fedora-directory-users > > > > > -- > Fedora-directory-users mailing list > Fedora-directory-users@xxxxxxxxxx <mailto:Fedora-directory-users@xxxxxxxxxx> > <mailto:Fedora-directory-users@xxxxxxxxxx <mailto:Fedora-directory-users@xxxxxxxxxx>> > https://www.redhat.com/mailman/listinfo/fedora-directory-users > > > ------------------------------------------------------------------------ > > -- > Fedora-directory-users mailing list > Fedora-directory-users@xxxxxxxxxx <mailto:Fedora-directory-users@xxxxxxxxxx> > https://www.redhat.com/mailman/listinfo/fedora-directory-users > -- Fedora-directory-users mailing list Fedora-directory-users@xxxxxxxxxx <mailto:Fedora-directory-users@xxxxxxxxxx> https://www.redhat.com/mailman/listinfo/fedora-directory-users ------------------------------------------------------------------------ -- Fedora-directory-users mailing list Fedora-directory-users@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-directory-users
<<attachment: smime.p7s>>
-- Fedora-directory-users mailing list Fedora-directory-users@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-directory-users