From: Chris R. <chr...@me...> - 2000-08-31 15:10:47
|
Fergus Donohue <Fer...@dc...> wrote: > Hi Jim, > > I've mapped the NDS "Home Directory" attribute to NWHomeDirectory as I > want "homeDirectoy" to be associated with the posixAccount homeDirectory > attribute. Using LDAP I populate these with values as given (now using > $NWHomeDirectory =~ s/\\/\\5c/g; as suggested by Chris. As I go through Be slightly careful here - you don't want to fix up real backslashes that might be present in the first or second components of the value, ie $dn and $foo in my code fragment. A legitimate DN might be: $dn = 'cn=Foo Bar, baz=ou\=Bar\,c\=US, c=IE'; A bit wierd, but legal! The entry below c=IE has an RDN which is a DN. (In other words attribute baz has a syntax of DN.) I dunno what the second component's meant to be, so can't give an example for it. If you know your DN and the second component are never going to contain legitimate backslashes, then your approach will do fine. Cheers, Chris |