[turba] New Turba Install (h3)
Carl Hultay
chultay at auricnet.ca
Mon Oct 24 07:28:58 PDT 2005
Heeding your advice has produced a different message:
There was an error importing the data: Failed to add an object: [21]
"Invalid syntax" DN: cn=Al
Baker,ou=AddressBook,ou=wilsonblanchard,ou=com (attributes:
[a:3:{s:4:"mail";s:28:"al.baker at wilsonblanchard.com";s:2:"cn";s:8:"Al
Baker";s:11:"objectclass";a:2:{i:0;s:3:"top";i:1;s:20:"microsoftaddressbook";}}]).Charset:UTF-8
I also tried 'dn' => array('cn'),
which produced the following result:
There was an error importing the data: Failed to add an object: [21]
"Invalid syntax" DN: givenname=Al
Baker,ou=AddressBook,ou=wilsonblanchard,ou=com (attributes:
[a:3:{s:4:"mail";s:28:"al.baker at wilsonblanchard.com";s:9:"givenname";s:8:"Al Baker";s:11:"objectclass";a:2:{i:0;s:3:"top";i:1;s:20:"microsoftaddressbook";}}]).Charset:UTF-8
I thank you for your help, I hope we can get this working! :)
-- Carl
On Wed, 2005-10-19 at 18:14 -0400, Kevin M. Myer wrote:
> Quoting Carl Hultay <chultay at auricnet.ca>:
>
> > I did try your method, I appreciate your help!
> >
> > Yeah, I wonder where the extra ',' is coming from... I even tried (but
> > failed) searching through various .php's... but obviously don't
> > understand it enough.
>
> The _makeKey function in turba/lib/Driver/ldap.php generates the DN.
> But its not generating a proper DN. The return code is:
>
> return $dn . ',' . $this->_params['root'];
>
> So you can see where the comma is coming from. Since $dn doesn't have
> a value, you get the DN you reported.
>
> You have a config option for:
>
> 'dn' => array('cn'),
>
> But, you don't map 'cn' to any Turba attribute in the attribute map.
> Try replacing the 'givenname' map with 'cn':
>
> 'map' => array(
> '__key' => 'dn',
> 'name' => 'cn', <-----change this from givenname to cn
> 'email' => 'mail',
> 'workPhone' => 'telephonenumber',
> 'cellPhone' => 'mobile',
> 'office' => 'department',
> )
>
> Or change your 'dn' => array entry to be 'dn' => array('givenname') if
> thats what you really want as the DN.
>
> Kevin
>
> --
> Kevin M. Myer
> Senior Systems Administrator
> Lancaster-Lebanon Intermediate Unit 13 http://www.iu13.org
>
>
More information about the turba
mailing list