From: Graham B. <gb...@po...> - 2002-01-29 10:53:42
|
Currently Net::LDAP::LDIF does not support controls specified in the LDIF file. Graham. On Tue, Jan 29, 2002 at 04:17:54PM +1100, Saritha Chipman wrote: > Hi, > > Could you please tell me if the "control" keyword in LDIF files (RFC2849) is > supported > in perl-LDAP? Or if I have used incorrect syntax in the LDIF entry below? > > I am running perl-LDAP version 0.2401. > > Using $ldif->read_entry() on a file containing the lines below returns the > error: > "LDAP entry is not valid". If I remove the last 2 lines, the entry can be > read correctly. > > dn: cn=Executive Lunch Room,ou=Executive,o=Deltawing,c=AU > changetype: modify > add: seeAlso > seeAlso: cn=Margaret Hunter,o=Deltawing,c=AU > control: 2.16.840.1.113730.3.4.18 true dn: cn=Andrew Sherman, > ou=Deltawing InfoSystems,o=Deltawing,c=AU > > I assume that I alternatively can use the Net::LDAP::Control::ProxyAuth > object on the > LDAP modify method to achieve this. However I wanted to use the following > method instead: > > - Read an entry from an LDIF file (possibly specifying a control as above) > into an > LDAP entry object > - Call the "update" method on the LDAP entry object > > Thanks very much for your help, > > Saritha Chipman > Senior Quality Control Officer - Business Solutions Group > Adacel Technologies Ltd > > |