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

libapache2-mod-vhost-ldap: How to add entry to OpenLdap.



Hello List,

I've been hitting my head on a brick wall for about a day now. It also seems that there aren't any examples out there to give someone like me an idea on how to add this entry to an LDAP tree. Well let me first say that sofar I am using phpldapadmin and I have made a small tree as follows:

dn: o=Company Name,<baseDN>.

So I am attempting to add a apacheConfig entry and I always get error about "LDAP_NAMING_VIOLATION", I have tried a number of prefixes as in 'uid=','cn=','gn=','dc='.

RDN: 'someprefix'=bob.co.za
Container: o=Company Name,<baseDN>.
ObjectClass: apacheConfig

Required Attributes:
   apacheDocumentRoot: /var/www/bob.co.za/
   apacheServerName: 'hostname of this host'

I have added the schema entries:

/etc/ldap/slapd.conf:
# Schema and objectClass definitions
include         /etc/ldap/schema/core.schema
include         /etc/ldap/schema/cosine.schema
include         /etc/ldap/schema/nis.schema
include         /etc/ldap/schema/inetorgperson.schema
include         /etc/ldap/schema/mod_vhost_ldap.schema

[root@xxxx:~] file /etc/ldap/schema/mod_vhost_ldap.schema
/etc/ldap/schema/mod_vhost_ldap.schema: ASCII text

Could someone please shed some light on this subject for me.

--

Kind Regards

Etienne Pretorius




Reply to: