Hi, I recently update my phpldapadmin to 1.2 and all of my templates were ko. I rewrite my templates with good syntax but the automatic way to generate uidnumber doesn't work.
As I saw here http://phpldapadmin.sourceforge.net/wiki/index.php/TemplateValueFunction:GetNextNumber i wrote in my config.php : $servers->setValue('auto_number','enable',true); $servers->setValue('auto_number','min',array('uidNumber'=>1000,'gidNumber'=>500)); $servers->setValue('auto_number','mechanism','search'); $servers->setValue('auto_number','search_base','ou=people,dc=my,dc=company'); In my template <value><![CDATA[=php.GetNextNumber(/;uidNumber;false;(&(objectClass=posixAccount));*2,+1000)]]></value> When I try to use my template : Fatal error: Unsupported operand types in /var/www/localhost/htdocs/phpldapadmin/lib/functions.php on line 1447 I also try in my template <value>=php.GetNextNumber(/,uidNumber)</value> but it gives me that : No AUTO_NUMBER search_base exists for this server A call was made to get_next_number(), however, the base to search does not exist for this server. (,uidNumber,dc=my,dc=company) Thx for your help ... -- View this message in context: http://www.nabble.com/Problem-with-php.GetNextNumber-in-templates-tp25135703p25135703.html Sent from the phpldapadmin-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ phpldapadmin-users mailing list phpldapadmin-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/phpldapadmin-users