[turba] LDAP config help
Scott Hood
shood at solucentrix.com
Wed Oct 15 10:59:01 PDT 2003
I get the same error doing it this way. I am a little new to ldap. When you
said you noticed that objectclass person requires cn and sn, did you find that
info in the schema? I haven't figured out what all of the attributes (ex. sn)
mean, I have been looking for a doc on this subject and haven't found anything
to helpful yet. Anything that could help me point in the right direction world
be great.
Scott
Quoting Amith Varghese <amith at xalan.com>:
> What I was trying to say is can you add an entry into the Shared Addressbook
> using a ldif file? So for example
>
>
> test.ldif
> ==========
> dn: cn=foo,dc=solucentrix,dc=com
> cn: foo
> sn: bar
> o: person
>
> ldapadd -W -x -b dc=solucentrix,dc=com -D cn=Manager,dc=solucentrix,dc=com
> -f
> test.ldif
>
> One thing I just noticed is that objectclass person requires cn and sn. Are
> you
> setting both? Doesn't look like it.
>
> Amith
>
>
> Quoting Scott Hood <shood at solucentrix.com>:
>
> | I add using a ldif file the looked like this
> |
> | # Organization for Example Corporation
> | dn: dc=solucentrix,dc=com
> | objectClass: dcObject
> | objectClass: organization
> | dc: solucentrix
> | o: Example Corporation
> | description: The Example Corporation
> |
> | # Organizational Role for Directory Manager
> | dn: cn=Manager,dc=solucentrix,dc=com
> | objectClass: organizationalRole
> | cn: Manager
> | description: Directory Manager
> |
> | when i run this command I
> |
> | ldapsearch -x -b 'dc=solucentrix,dc=com' '(objectclass=*)'
> |
> | I get this
> | version: 2
> |
> | #
> | # filter: (objectclass=*)
> | # requesting: ALL
> | #
> |
> | # solucentrix, com
> | dn: dc=solucentrix,dc=com
> | objectClass: dcObject
> | objectClass: organization
> | dc: solucentrix
> | o: Example Corporation
> | description: The Example Corporation
> |
> | # Manager, solucentrix, com
> | dn: cn=Manager,dc=solucentrix,dc=com
> | objectClass: organizationalRole
> | cn: Manager
> | description: Directory Manager
> |
> | # search result
> | search: 2
> | result: 0 Success
> |
> | # numResponses: 3
> | # numEntries: 2
> |
> | I think I have that part configed correctly (still unsure). And when I
> | browse
> | in Turba I can't see anything I add from the command line.
> |
> | Thanks
> |
> | Scott
> |
> | Quoting Amith Varghese <amith at xalan.com>:
> |
> | > Can you add an object to the LDAP tree using ldapadd? Try that first to
> | > make
> | > sure its not a configuration problem with LDAP
> | >
> | > Amith
> | >
> | > Quoting Scott Hood <shood at SOLUCENTRIX.COM>:
> | >
> | > | I have ldap running and can add and serch via the command prompt.
> | > | My snippet of slapd.conf
> | > |
> | > |
> | > |
> | > | database ldbm
> | > | suffix "dc=solucentrix,dc=com"
> | > | rootdn "cn=Manager,dc=solucentrix,dc=com"
> | > | rootpw manager
> | > | directory /var/lib/ldap
> | > | index objectClass,uid,uidNumber,gidNumber,memberUid eq
> | > | index cn,mail,surname,givenname eq,subinitial
> | > |
> | > |
> | > | My snippet of sources.php
> | > |
> | > | $cfgSources['localldap'] = array(
> | > | 'title' => 'Shared Directory',
> | > | 'type' => 'ldap',
> | > | 'params' => array(
> | > | 'server' => 'localhost',
> | > | 'port' => 389,
> | > | 'root' => 'dc=solucentrix,dc=com',
> | > | 'bind_dn' => 'cn=Manager,dc=solucentrix,dc=com',
> | > | 'bind_password' => 'manager',
> | > | 'dn' => array('cn'),
> | > | 'objectclass' => 'person',
> | > | 'version' => 3
> | > | ),
> | > | 'map' => array(
> | > | '__key' => 'dn',
> | > | 'name' => 'cn',
> | > | 'email' => 'mail',
> | > | 'homePhone' => 'homephone',
> | > | 'workPhone' => 'telephonenumber',
> | > | 'cellPhone' => 'mobiletelephonenumber',
> | > | 'homeAddress' => 'homepostaladdress'
> | > | ),
> | > | 'search' => array(
> | > | 'name',
> | > | 'email',
> | > | 'homePhone',
> | > | 'workPhone',
> | > | 'cellPhone',
> | > | 'homeAddress'
> | > | ),
> | > | 'strict' => array(
> | > | 'dn'
> | > | ),
> | > | 'public' => true,
> | > | 'readonly' => false,
> | > | 'admin' => array('shood'),
> | > | 'export' => true
> | > | );
> | > |
> | > | Right now I am only trying to get the Shared Directory work. When I
> try
> | > to
> | > | add
> | > | i get
> | > |
> | > | Oct 15 10:29:46 HORDE [error] [turba] Failed to add an object: [65]
> | > "Object
> | > | class violation" (attributes: [a:7:
> | > |
> | >
> |
>
{s:2:"cn";s:4:"test";s:4:"mail";s:4:"test";s:9:"homephone";s:4:"test";s:15:"tele
> | > |
> | >
> |
>
phonenumber";s:4:"test";s:21:"mobiletelephonenumber";s:4:"test";s:17:"homepostal
> | > | address";s:4:"test";s:11:"objectclass";s:6:"person";}]). [on line 41
> | > | of "/var/www/html/horde/turba/addobjectaction.php"]
> | > |
> | > |
> | > | When I browse or search I do not see what I added at the command line.
> I
> | > | applied the schema patch, also. Can anyone give me any ideas?
> | > |
> | > | Thanks
> | > |
> | > | Scott
> | > |
> | > | -------------------------------------------------
> | > | This mail sent through IMP: http://horde.org/imp/
> | > |
> | > | --
> | > | Turba mailing list
> | > | Frequently Asked Questions: http://horde.org/faq/
> | > | To unsubscribe, mail: turba-unsubscribe at lists.horde.org
> | > |
> | >
> | > --
> | > Turba mailing list
> | > Frequently Asked Questions: http://horde.org/faq/
> | > To unsubscribe, mail: turba-unsubscribe at lists.horde.org
> | >
> |
> |
> |
> |
> | -------------------------------------------------
> | This mail sent through IMP: http://horde.org/imp/
> |
> | --
> | Turba mailing list
> | Frequently Asked Questions: http://horde.org/faq/
> | To unsubscribe, mail: turba-unsubscribe at lists.horde.org
> |
>
> --
> Turba mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: turba-unsubscribe at lists.horde.org
>
-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
More information about the turba
mailing list