LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Thread Tools
Old 01-08-2009, 02:57 PM   #1
sydney-troz
Member
 
Registered: Feb 2007
Distribution: Kubuntu, it's obese barely-usable sibling, Ubuntu
Posts: 142
Thanked: 0
pam_ncp_auth.so calls ncpmount with invalid parameters


[Log in to get rid of this advertisement]
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
sydney-troz is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
insmod: error inserting 'm2.ko': -1 Invalid parameters nikhil86 Programming 1 04-02-2008 09:26 PM
how does java calls the system calls which are written in c babu198649 Linux - General 2 03-20-2008 05:05 AM
SAMBA - Invalid parameters when copying a file - FC6 dkinfl Linux - Software 0 01-24-2007 12:43 PM
Netware authentication, pam_ncp_auth and Zenux flags Maffy Linux - Networking 0 10-05-2005 08:06 AM
ncpmount cplowe Linux - Software 0 08-27-2004 12:32 PM


All times are GMT -5. The time now is 11:04 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration