From: Fergus D. <Fer...@dc...> - 2000-08-31 14:36:12
|
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 the students I add lines to a batch file that is later run on a client logged into the netware server as admin. The batch file does the following: mkdir $path rights $path <rights> /user=$username flag $path +di +ri /do setquota /d:t $vol:$path /b:m 50 I haven't finished testing the script yet and so can't confirm that everything works perfectly - but we can create a/cs that can login to both netware and Solaris and have a correct homedir path. Fergus. Jim Harle wrote: > Fergus, > What Netware attribute did you map to NWHomeDirectory? I am interested > in setting home directories also. What do you do to actually create the > directories? Any other hints? I have account creation scripts that do > everything but setup home directories and create GroupWise accounts. > --Jim harle > > On Thu, 31 Aug 2000, Fergus Donohue wrote: > > > Hi All, > > > > I have a problem with setting the Netware home directory attribute via > > perl-ldap. Here's what I'm doing: > > > > I have an NDS8 server on which I'm creating user a/cs. This works fine > > in the majority of cases but I found what may be a bug in perl-ldap > > today. I'm setting the NWHomeDirectory attribute (changed name to avoid > > clash with posixAccount) to items like: > > > > cn=CYAN_DATA4,ou=CYAN,o=DCU#0#\students\J-Z\xe\xe2\userj9 > > > > with no problems - however when I try to set it to the following it > > doesn't work: > > > > cn=CYAN_DATA2,ou=CYAN,o=DCU#0#\students\C-E\ca\ca2\userj9 > > > > I get garbage in the "Home Directory" dialogue box under ConsoleOne > > after the "C-E". > > > > I've tracked this down to perl -ldap interpreting \c (or \b, \a etc.) as > > special characters. I build this string on the fly so I can't see an > > easy way of single quoting it (if that would help?). I've tried setting > > > > $NWHomeDirectory="'".$NWHomeDirectory."'"; > > > > but it didn't help. > > > > Has anyone any ideas? > > > > Thanks, > > > > Fergus. > > > > > > |