[turba] LDAP ADD CONTACT

Partha parth11 at yahoo.com
Wed Dec 4 01:34:01 2002


Hi All
I want to use LDAP for my personal address book.I went
through lot of reading material but still can't get it
right.

I have problem adding contact to my personal address
book.

my sources.php looks like this--->
$cn = Auth::getAuth();
#$temp = Auth::getCredential('password');
#preg_match = ("/(^.*)@/"),$cn,$cn);
#Print $cn ."-This is cn--";

/**
 * A local directory in an LDAP directory. This
implements a public (shared)
 * address book.
 */
$cfgSources['localldap'] = array(
    'title' => 'Shared LDAP Directory',
    'type' => 'ldap',
    'params' => array(
        'server' => 'localhost',
        'port' => 389,
        'root' => 'ou='.$cn.',ou=Personal Address
Book,dc=my-domain,dc=com',
        'bind_dn' =>
'cn='.$cn.',ou=people,dc=my-domain,dc=com',
	#'bind_password' => Auth::getCredential('password'),
        #'bind_password' => '********', 
        'dn' => array('cn'),
        'objectclass' => 'person',
        'version' => 3
    ),
    'map' => array(
        '__key' => 'dn',
        'name' => 'cn',
        'email' => 'mail',
        'homePhone' => 'telephonenumber',
        'workPhone' => 'workphonenumber',
        'cellPhone' => 'cellphonenumber',
        'homeAddress' => 'homeaddress'
    ),
    'search' => array(
        'name',
        'email',
        'homePhone',
        'workPhone',
        'cellPhone',
        'homeAddress'
    ),
    'strict' => array(
        'dn'
    ),
    'public' => true,
    'readonly' => false,
    'admin' => array(),
    'export' => true
);


My ACCESS CONTROL looks slapd.conf---->

access to dn="ou=.*,ou=Personal Address
Book,dc=desmac,dc=com"
	by * read
	by dn="cn=$1,ou=people,dc=my-domain,dc=com" write


my log says no write access to the parent.

PLEASE I NEED SOME LIGHT   :-)
Thanks in advance for ur time and patience.....

Partha


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com


More information about the turba mailing list