[Fedora-directory-users] Console issue
Richard Megginson
rmeggins at redhat.com
Tue Feb 12 01:35:46 UTC 2008
Anand Vaddarapu wrote:
> Hi Rich,
> I have installed centos 5.1 and FDS 1.1.
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 youroldhostname
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 hostname
Edit /etc/dirsrv/admin-serv/adm.conf - update your ldap server hostname
- you will then have to restart the admin server.
> Thanks
> vivek
>
> On Feb 12, 2008 8:37 AM, Richard Megginson <rmeggins at redhat.com
> <mailto:rmeggins at redhat.com>> 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 at redhat.com
> <mailto:rmeggins at redhat.com>
> > <mailto:rmeggins at redhat.com <mailto:rmeggins at redhat.com>>> 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 at redhat.com
> <mailto:Fedora-directory-users at redhat.com>
> > <mailto:Fedora-directory-users at redhat.com
> <mailto:Fedora-directory-users at redhat.com>>
> > > https://www.redhat.com/mailman/listinfo/fedora-directory-users
> > >
> >
> >
> > --
> > Fedora-directory-users mailing list
> > Fedora-directory-users at redhat.com
> <mailto:Fedora-directory-users at redhat.com>
> > <mailto:Fedora-directory-users at redhat.com
> <mailto:Fedora-directory-users at redhat.com>>
> > https://www.redhat.com/mailman/listinfo/fedora-directory-users
> >
> >
> >
> ------------------------------------------------------------------------
> >
> > --
> > Fedora-directory-users mailing list
> > Fedora-directory-users at redhat.com
> <mailto:Fedora-directory-users at redhat.com>
> > https://www.redhat.com/mailman/listinfo/fedora-directory-users
> >
>
>
> --
> Fedora-directory-users mailing list
> Fedora-directory-users at redhat.com
> <mailto:Fedora-directory-users at redhat.com>
> https://www.redhat.com/mailman/listinfo/fedora-directory-users
>
>
> ------------------------------------------------------------------------
>
> --
> 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: 3245 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/fedora-directory-users/attachments/20080211/a81183b7/attachment.bin>
More information about the Fedora-directory-users
mailing list