[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: creating a cn=config modules



I did use ldapadd and the ldap server is RHEL 7.Â


On Wed, Jul 9, 2014 at 7:02 PM, Howard Chu <hyc@symas.com> wrote:
Greg Treantos wrote:
I have read the documentation and cannot figure out how to create a new dit so
I can add the module I need. If you can be more specific on what I should be
looking for that would be great. But no where have I found that points how to
create the cn=module{0} dit so it can be populated. I don't know maybe I'm
asking the wrong questions.

As you correctly noted, ldapadd and ldapmodify are the same command. However, the syntax of an LDAP Add request is different from an LDAP Modify request. As Quanah already pointed out to you, you are trying to use some corrupted form of LDAP Modify syntax, but since the entry you want doesn't exist, you actually need to use LDAP Add.

The differences between these two are spelled out in the LDIF documentation.

from the docs


   5.2.2. cn=module

If support for dynamically loaded modules was enabled when configuring slapd,
cn=module entries may be used to specify sets of modules to load. Module
entries must have the olcModuleList objectClass.


I don't have a cn=module dit, how do I create it?



On Wed, Jul 9, 2014 at 6:26 PM, Quanah Gibson-Mount <quanah@zimbra.com
<mailto:quanah@zimbra.com>> wrote:

  --On Wednesday, July 09, 2014 6:59 PM -0400 Greg Treantos
  <gtreanto@gmail.com <mailto:gtreanto@gmail.com>> wrote:


    Â>From the man pages ldapadd is just a hardlink to ldapmodify, but I tried
    and got the same error



    ldapadd -Y EXTERNAL -H ldapi:/// -v -f ldapMdynalist.ldif
    ldap_initialize( ldapi:///??base )
    SASL/EXTERNAL authentication started
    SASL username: gidNumber=0+uidNumber=0,cn=__peercred,cn=external,cn=auth

    SASL SSF: 0
    add olcModuleLoad:
        Â{0}/usr/lib64/openldap/membero__f.la <http://memberof.la>



  The above is invalid. ÂI strongly advise you to read the documentation.

  Also, you should not be touching or creating any files inside the
  cn=config database.


--
 -- Howard Chu
 CTO, Symas Corp.      http://www.symas.com
 Director, Highland Sun   http://highlandsun.com/hyc/
 Chief Architect, OpenLDAP Âhttp://www.openldap.org/project/



--
Greg

http://www.linkedin.com/in/gregtreantos