[turba] attributes - help

Tim Dodge timmy@invisibles.org
Tue, 11 Sep 2001 16:24:18 +0100


Hi, 

I've got a very similar set up to Terry (below), is there anyway of supplying 
more than one objectClass for the addressbook entry? 

If I try adding 3 objectClass entries (like below, minus the comment chars), 
only the final one is used when I add a new address. 

Cheers, 
Tim 


Quoting Terry Davis <tdavis@birddog.com>:

> Things are falling together.  It makes perfect sense and is a great
> way of doing
> things.  However, I am not able to get a few attributes to work.  I
> see the
> spaces for them on the page but the values are not being put into the
> fields. 
> workPhone,workAddress,and fax are not showing up.  
> 
> Here is my sources.php:
> $cfgSources = array();
>  
> $cfgSources['netcenter'] = array(
>     'title' => 'BirdDog Address Book',
>     'type' => 'ldap',
>     'params' => array(
>         'server' => 'ldap.birddog.com',
>         'port' => 389,
>         'root' => 'ou=People,dc=birddog,dc=com',
>         'dn' => array('cn'),
>         'objectclass' => 'person',
> #       'objectclass' => 'organizationalPerson',
> #       'objectclass' => 'inetOrgPerson',
> #       'objectclass' => 'inetLocalMailRecipient',
>         'filter' => ''
>     ),
>     'map' => array(
>         '__key' => 'dn',
>         'name' => 'cn',
>         'email' => 'mail',
>         'alias' => 'givenname',
>         'title' => 'title',
>         'department' => 'ou',
>         'workPhone' => 'telephoneNumber',
>         'pager' => 'pager',
>         'cellPhone' => 'mobile',
>         'fax' => 'facsimileTelephoneNumber',
>         'workAddress' => 'postalAddress'
>     ),
>     'public' => true,
>     'readonly' => true
> );
> 
> 
> And here is my attributes.php:
> 
> $attributes['name'] = _("Name");
> $attributes['alias'] = _("Alias");
> $attributes['email'] = _("Email");
> $attributes['title'] = _("Title");
> $attributes['company'] = _("Company");
> $attributes['homeAddress'] = _("Home Address");
> $attributes['workAddress'] = _("Work Address");
> $attributes['homePhone'] = _("Home Phone");
> $attributes['workPhone'] = _("Work Phone");
> $attributes['pager'] = _("Pager");
> $attributes['cellPhone'] = _("Cell Phone");
> $attributes['fax'] = _("Fax");
> $attributes['notes'] = _("Notes");
> 
> All of them work but the 3 I mentioned above.  I can use another
> program and get
> the values fine, so I know its not an acl problem or anything along
> the
> permissions line.
> 
> Thank you for any insight.
> 
> -- 
> Terry Davis
> Systems Administrator
> BirdDog Solutions, Inc.
> (402) 829-6059
> 
> 
> Quoting Chuck Hagenbuch <chuck@horde.org>:
> 
> > Quoting Terry Davis <tdavis@birddog.com>:
> > 
> > > My schema calls it mobile, not cellphone.  
> > > oh ok.  it just maps easy to remember words to actual attribute
> names?
> > 
> > The whole point of the map array is that different backends are
> going to
> > call
> > things - like mobile numbers - different things. You don't need to
> change
> > _any_
> > code to compensate for this. You just change the map. You shouldn't
> be
> > adding
> > _anything_ for attributes that already exist, just with a different
> name.
> > 
> > -chuck
> > 
> > --
> > Charles Hagenbuch, <chuck@horde.org>
> > Some fallen angels have their good reasons.
> > 
> > -- 
> > Turba mailing list: http://horde.org/turba/
> > Frequently Asked Questions: http://horde.org/faq/
> > To unsubscribe, mail: turba-unsubscribe@lists.horde.org
> > 
> 
> 
> -------------------------------------------------
> This mail sent through IMP: http://horde.org/imp/
> 
> 
> -- 
> Turba mailing list: http://horde.org/turba/
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: turba-unsubscribe@lists.horde.org
>