[turba] adding contacts to OpenLDAP driven Turba

Chris J Albertson alb at chrisalbertson.com
Mon May 19 13:45:28 PDT 2003


Yup yup. Same experience here.
I got around this by customizing Turba to allow me to enter the Sirname.
Here is what I did:

1) Add the sirname to the config/attributes.php file to define what it is.
Here's mine:
$attributes['sirname'] = array(
    'label' => _("Sirname"),
    'type' => 'text',
    'required' => false
);

2) Added the sirname field to the "map" section of the LDAP config in the
config/sources.php file. Here is what my map looks like:
'map' => array(
        '__key' => 'dn',
        'name' => 'cn',
        'title' => 'title',
        'sirname' => 'sn',
        'company' => 'o',
        'email' => 'mail',
        'homePhone' => 'homephone',
        'workPhone' => 'telephonenumber',
        'cellPhone' => 'mobile',
        'fax' => 'facsimiletelephonenumber',
        'homeAddress' => 'homepostaladdress',
        'workAddress' => 'postaladdress',
        'notes' => 'description',
        'pgpPublicKey' => 'pgppublickey',

    ),

Add these two things and you'll have yourself a new field to use with your
contacts and it will store the sirname information.

I hope this helps.

-- 
Chris Albertson
Owner - ChrisAlbertson.com  (Actually, I rent, with an option to buy)

======================================================
^         You can find my PGP public key,            ^
^  email server policy, and other misc "stuff" at..  ^
^         http://www.chrisalbertson.com.             ^
======================================================


Quoting Bernhard Erdmann <be at berdmann.de>:

 Hi,
 
 Turba misses to add sn (surname) to a newly inserted contact. sn is
 required by objectclass person.
 
 Turba-cvs is connected to an OpenLDAP (2.1.17) server. When I try to add
 a new contact, turba tells me an error after entering the name and
 telephone number when clicking to "Save".
 
 The LDAP server logs:
 
 May 19 22:22:18 ente slapd[1468]: conn=35 fd=14 ACCEPT from
 IP=127.0.0.1:43749 (IP=0.0.0.0:389)
 May 19 22:22:18 ente slapd[1959]: conn=35 op=0 BIND
 dn="cn=root,dc=berdmann,dc=de" method=128
 May 19 22:22:18 ente slapd[1959]: conn=35 op=0 BIND
 dn="cn=root,dc=berdmann,dc=de" mech=simple ssf=0
 May 19 22:22:18 ente slapd[1959]: conn=35 op=0 RESULT tag=97 err=0 text=
 May 19 22:22:18 ente slapd[1959]: conn=35 op=1 ADD dn="cn=Axxx
 Bxxx,dc=berdmann,dc=de"
 May 19 22:22:18 ente slapd[1959]: Entry (cn=Axxx
 Bxxx,dc=berdmann,dc=de): object class 'person' requires attribute 'sn'
 May 19 22:22:18 ente slapd[1959]: conn=35 op=1 RESULT tag=105 err=65
 text=objectclass 'person' requires attribute 'sn'
 May 19 22:22:18 ente slapd[1959]: conn=35 op=2 UNBIND
 May 19 22:22:18 ente slapd[1959]: conn=35 fd=14 closed
 
 Apparently, sn (surname, here Bxxx) is missing to be generated by turba
 using the full name (cn).
 
 
 --
 Turba mailing list
 Frequently Asked Questions: http://horde.org/faq/
 To unsubscribe, mail: turba-unsubscribe at lists.horde.org
 


-------------------------------------------------
This email was sent from www.chrisalbertson.com
using the IMP mailing program, part of the Horde suite
of information management tools.
http://horde.org/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: PGP Digital Signature
Url : http://lists.horde.org/archives/turba/attachments/20030519/95780c52/attachment.bin


More information about the turba mailing list