Hello I am using PHPLDAPADMIN 1.1.05 with OPENLDAP 2.3.19-18.6.  Everything
works fine except when I try to add an attribute using PHPLDAPADMIN.  I
select the 'Add new attribute' button on any user and get the error below:

I have added the following entries to config.php, otherwise everything else
is standard:

$ldapservers->SetValue($i,'server','name','TDM LDAP SERVER');
$ldapservers->SetValue($i,'server','host','xxx.xxx.xx.xx');
$ldapservers->SetValue($i,'server','base',array('dc=my,dc=ldap.com'));
$ldapservers->SetValue($i,'login','dn','cn=Manager,dc=my,dc=ldap.com');

Thank you for your help in advance.


Error
E_WARNING: array_search() [function.array-search]: Wrong datatype for second
argument
error    You found a non-fatal phpLDAPadmin bug!
Error:    Array to string conversion (E_NOTICE)
File:    add_attr_form.php line 27, caller cmd.php
Versions:    PLA: 1.1.0.5, PHP: 5.1.2, SAPI: apache2handler
Web server:    Apache/2.0.55 (Unix) DAV/2 PHP/5.1.2
Please check and see if this bug has been reported.

error    You found a non-fatal phpLDAPadmin bug!

Error:    Array to string conversion (E_NOTICE)
File:    add_attr_form.php line 28, caller cmd.php
Versions:    PLA: 1.1.0.5, PHP: 5.1.2, SAPI: apache2handler
Web server:    Apache/2.0.55 (Unix) DAV/2 PHP/5.1.2
Please check and see if this bug has been reported.

error    You found a non-fatal phpLDAPadmin bug!

Error:    Array to string conversion (E_NOTICE)
File:    add_attr_form.php line 31, caller cmd.php
Versions:    PLA: 1.1.0.5, PHP: 5.1.2, SAPI: apache2handler
Web server:    Apache/2.0.55 (Unix) DAV/2 PHP/5.1.2
Please check and see if this bug has been reported.
PHP Debug Backtrace

File    /data/apache/v5/htdocs/phpldapadmin-1.1.0.5/lib/functions.php (154)
     Function    error (a:4:{i:0;s:121:"E_WARNING: array_search() [<a
href='function.array-search'>function.array-search</a>]: Wrong datatype for
second argument";i:1;s:5:"error";i:2;b:1;i:3;b:1;})

File    ()
     Function    pla_error_handler (a:5:{i:0;i:2;i:1;s:110:"array_search()
[<a href='function.array-search'


-cs
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
phpldapadmin-users mailing list
phpldapadmin-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/phpldapadmin-users

Reply via email to