Hi
I've been trying to get a vanilla Ubuntu install configured to use PAM to authenticate Novell users to the workstation. I have been following a howto from CoolSolutions, using the pam_ncp_auth website (which is basically an in-depth man page), and have got the authentication bit working, but am having problems mounting users' home directories. The log file shows that pam_ncp_auth.so is calling ncpmount, but with incorrect options:
Code:
running as username "/usr/bin/ncpmount -U .UserName.CtxtName.TREENAME -S SERVERNAME -A SERVERNAME -V VOLNAME://USERNAME -o symlinks,exec -u 1010 -c 1010 -d 0700 /mnt/ncp/username/"
I have been able to mount the required volume successfully using the command
Code:
# -A specifies server's IP
# -u is the local username to mount as
sudo ncpmount -S treename -U username.ctxtname.treename -A xxx.xxx.xxx.xxx -u username -V VOLNAME /mount/point
and when I tried using the :// notation the log file showed, I got an invalid parameter error. You'll also notice the logged command puts another period in front of the username, which doesn't make sense to me. This is the line from the PAM config file calling pam_ncp_auth.so:
Code:
auth sufficient /lib/security/pam_ncp_auth.so -a -zAX3 -A -m -d -l -L -u,,r,gcds ndsserver=xxx.xxx.xxx.xxx:ctxtname.treename
I can log in as a Novell user fine, it just won't mount. I took the module arguments straight out of the howto, but I haven't seen anyone else have this problem, so I'm going to guess that it's a problem with my configuration, although I'm not sure which arguments are responsible for a malformed volume specification. Both pam_ncp_auth.so and ncpfs have been installed from the Ubuntu repository, and are version 2.2.6 (the latest).
My next idea is to try recompiling the module to use the correct arguments with ncpmount, but if I don't need to do this, that would be great.
Thanks for any help,
Syd