6.0.0-alpha10
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
5/18/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#2529] Problems with "cn", "name" and ldap (patch)
*
Your Email Address
*
Spam protection
Enter the letters below:
__..__.. ..__ .__ (__ | || |[ __[__) .__)|__\|/\|[_./|
Comment
> New patch. > > I extended the map-array with a 'attr' field (if anyone have a better > name, feel free to change it): > > > > 'name' => array('fields' => array('firstname', 'lastname'), > > 'format' => '%s %s', > > 'attr' => 'cn'), > > > > And then I added the following to Driver.php: > > --- Driver.php.orig 2005-08-30 12:39:52.000000000 +0200 > > +++ Driver.php 2005-09-11 17:13:31.000000000 +0200 > > @@ -141,8 +141,18 @@ > > { > > $fields = array(); > > foreach ($hash as $key => $val) { > > - if (isset($this->map[$key]) && !is_array($this->map[$key])) { > > - $fields[$this->map[$key]] = $val; > > + if (isset($this->map[$key])) { > > + if (!is_array($this->map[$key])) { > > + $fields[$this->map[$key]] = $val; > > + } > > + elseif ($this->map[$key]['attr']) { > > + $fieldarray = array(); > > + foreach ($this->map[$key]['fields'] as $mapfields) { > > + $fieldarray[] = $hash[$mapfields]; > > + > > + } > > + $fields[$this->map[$key]['attr']] = > vsprintf($this->map[$key]['format'], $fieldarray); > > + } > > } > > } > > return $fields; > >
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers