This is not the ini format, you are tring to merge the ini format and the array format, you need to do one or the other. To use ini, it would look like this:

ldap.option.host = "10.78.165.44"
ldap.option.bind_dn = "cn=LDAPUser,OU=Users,DC=example,DC=com"

or if you wanted to use "sections"

[ldap]
options.host = "10.78.165.44"
options.bind_dn = "cn=LDAPUser,OU=Users,DC=example,DC=com"


-ralph

Kexiao Liao wrote:
I try to use Zend_Config_Ini to parse following option array into Zend
Configuration class, it fails to read this line: 'host'=>'10.11.111.22'
[ldap]          
ldap.option = array(
        'host'=>'10.78.165.44',                              //server IP,
mandatory
        'bind_dn'=>'cn=LDAPUser,OU=Users,DC=example,DC=com', //DN of the user
that may browse the ldap
        'bind_pw'=>'xxxxxxx',                                //password
        'user_oc'=>'user',                                   //ObjectClass for
users
        'base_dn'=>'DC=example,DC=com',                      //base DN for all
users
        'user_dn'=>'OU=Users',                               //dn for users
        'user_attr'=>'samAccountName',                       //the attribute
that contains the user login
        //AD options
        'use_domain_from_email'=>false,                      //username is an
email, split it to get the domain
        'domain'=>'',                                        //NT domain to
prepend to the username, this is used with the direct_ bind on AD
        'use_direct_bind'=>false                             //force the auth
based only on binding by username and password provided by user
        )

tfk wrote:
On 8/23/07, Kexiao Liao <[EMAIL PROTECTED]> wrote:

Can we put comments in the Zend Configuration file(conf.ini) as showing
below?
Yes!

http://de3.php.net/manual/en/function.parse-ini-file.php

Till




Reply via email to