Hariharan R
2006-Apr-25 09:55 UTC
[Fedora-directory-users] Administrating Fedora directory Server through commands
Hai,
I am using Fedora Directory Server 7.1 on CentOS 4.3 (SMP kernal).
Now i want to administer FDS from the command line.so i am using
ldapadd,ldapmodify,ldapdelete ... commands.
I have no problem in adding an organizational unit or user to the
directory.
I am getting problem while try to add a new root suffix to the FDS from
the command line.
This is the process i am following to add a new root suffix
1) The ldif file (root.ldif) contains the following attributes
corresponds to the root entry
dn: cn="dc=newroot,dc=com",cn=mapping tree,cn=config
objectclass: dcobject
objectclass: top
objectClass: domain
objectclass: extensibleObject
objectclass: nsMappingTree
nsslapd-state: backend
nsslapd-backend: newdb
cn: dc=newroot,dc=com
dc: newroot
2) Then i am using ldap add command to add the root suffix which is
defined in the ldif file(root.ldif)
ldapadd -x -D "cn=Directory Manager" -w testingdir -f
root.ldif
This command is get executed perfectly.Then i opened the FDS console.
Perhaps there is no error in the log file too.
3) Click Directory server > configuration
I have the entry for "newroot" and "newdb" is the
database assigned to
the database.
4) Then If i open the Directory server > directory window i am not having
a directory entry for the newly created root suffix.
I don''t have any problem if i create the root suffix from the GUI
mode.
What could be the problem?
Can anyone pls help me to get rid of the problem?
Is there is any documentation available for administrating the Fedora
Directory server from the command line with trouble shooting
methods.(Now i am using Fedors DS administration guide.)
Thanks in advance.
---
Regards,
Hariharan.R
Richard Megginson
2006-Apr-25 14:40 UTC
Re: [Fedora-directory-users] Administrating Fedora directory Server through commands
Hariharan R wrote:> Hai, > > I am using Fedora Directory Server 7.1 on CentOS 4.3 (SMP kernal). > > Now i want to administer FDS from the command line.so i am using > ldapadd,ldapmodify,ldapdelete ... commands. > > I have no problem in adding an organizational unit or user to the > directory. > > I am getting problem while try to add a new root suffix to the FDS from > the command line. > > This is the process i am following to add a new root suffix > > 1) The ldif file (root.ldif) contains the following attributes > corresponds to the root entry > > dn: cn="dc=newroot,dc=com",cn=mapping tree,cn=config > objectclass: dcobject > objectclass: top > objectClass: domain > objectclass: extensibleObject > objectclass: nsMappingTree > nsslapd-state: backend > nsslapd-backend: newdb > cn: dc=newroot,dc=com > dc: newroot > > 2) Then i am using ldap add command to add the root suffix which is > defined in the ldif file(root.ldif) > > ldapadd -x -D "cn=Directory Manager" -w testingdir -f root.ldif > > This command is get executed perfectly.Then i opened the FDS console. > Perhaps there is no error in the log file too. > > 3) Click Directory server > configuration > > I have the entry for "newroot" and "newdb" is the database > assigned to > the database.But I think you did not define the database "newdb". See http://www.redhat.com/docs/manuals/dir-server/ag/7.1/entry_dist.html#18238 You should add an entry that looks like this: dn: cn=newdb,cn=ldbm database,cn=plugins,cn=config objectclass: extensibleObject objectclass: nsBackendInstance nsslapd-suffix: dc=newroot,dc=com> > 4) Then If i open the Directory server > directory window i am not > having > a directory entry for the newly created root suffix.Finally, you need to add an actual _entry_. The directory browser window only shows you entries. Defining a suffix and a database does not actually add any data/entries to the newly created suffix. You need to add an entry like this: dn: dc=newroot,dc=com objectclass: top objectclass: domain dc: newroot> > I don''t have any problem if i create the root suffix from the GUI > mode.The console does a lot of this behind the scenes.> > > What could be the problem? > > Can anyone pls help me to get rid of the problem? > > Is there is any documentation available for administrating the Fedora > Directory server from the command line with trouble shooting > methods.(Now i am using Fedors DS administration guide.) > > Thanks in advance. > > --- > Regards, > Hariharan.R > > -- > Fedora-directory-users mailing list > Fedora-directory-users@redhat.com > https://www.redhat.com/mailman/listinfo/fedora-directory-users
Hariharan R
2006-May-02 04:07 UTC
[Fedora-directory-users] Fedora directory Server 7.1 with BDB/MySQL Backend
Hai, Fedora DS 7.1 by default supports LDBM database as a backend data store. I want to change the backend database to BDB or MySQL. How i can make the Fedora DS 7.1 to interface with BDB or MySQL database? Is there is any documentation for doing it? Please anyone advice me on this.I am in an urgent need ... Thanks in advance. --- Regards, Hariharan.R
David Boreham
2006-May-02 04:18 UTC
Re: [Fedora-directory-users] Fedora directory Server 7.1 with BDB/MySQL Backend
Hariharan R wrote:> Fedora DS 7.1 by default supports LDBM database as a backend data > store. > > I want to change the backend database to BDB or MySQL. > > How i can make the Fedora DS 7.1 to interface with BDB or MySQL > database?Well let''s see... 1. The LDBM/BDB thing is an OpenLDAP-ism. OpenLDAP created the ''BDB'' backend as the new transacted store, leaving the older LDBM code as it was. FDS is not OpenLDAP. It forked from the UMich code in 1995. In FDS the name of the files is still ''ldbm'' but the functionality is roughly similar to that of the ''BDB'' backend in OpenLDAP (at least as far as having ACID properties and using transactions in BekeleyDB goes). So you need do absolutely nothing to get ''BDB''. 2. There is no SQL back end for FDS at present. So to change to a MySQL backend database you''d need to write code.