Re: Error In LDAP->ADD

2003-12-24 Thread Jim Harle
Neelish, The problem is the quotes around $dn. That is, the line should be $result = $ldap->add(dn =>$dn, attr => [$attr]); On Wed, 24 Dec 2003, neelesh wrote: > Hi > I am using perl with open LDAP over linux and i am getting error of invalid > dn when i use following statement. > > $

Error In LDAP->ADD

2003-12-24 Thread neelesh
Hi I am using perl with open LDAP over linux and i am getting error of invalid dn when i use following statement. $result = $ldap->add(dn =>'$dn', attr => [$attr]); where $dn and $attr are variable but when i use following statement then code succcessfully runs $result = $ldap->add(