LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-07-2007, 05:25 PM   #1
jabobadilla
LQ Newbie
 
Registered: May 2007
Distribution: CentOS
Posts: 8

Rep: Reputation: 0
ncpmount and Novel Client for Linux


Hi,

I have a CentOS 4.5 installed in a VMWare Workstation. I downloaded the Novel Client for Linux, and installed it along with the ncpfs package.

I am able to log in to a Novell server at work when I submit the following command:

"ncpmount -S myserver.com -A myserver.com -U myuser -P mypassword -u myuid -g mygid -m /home/myprofile/mytargetfolder"

Once I have logged in, I encounter three problems:

1) I cannot see all the servers available for connection in the tree when I submit an slist command (I can only view the servers available in my subnet). I am trying to connect also to other servers. I receive the following error:
"ncpmount: All referrals failed (-626) in nds login"
I have seen documentation for this in the follwing Novell site: http://www.novell.com/documentation/...s/fffffd8e.htm

This refers to an error while walking the NDS tree. What can I do?

2) The connection is good for about 1 minute, after that I cannot see the objects in my Novell share.
How can I make this connection more stable?

3) I do not have all my rights in the Novell share, because I cannot copy new files into this share.
How can I get all my correct rights in this folder?


Help is greatly appreciated.
 
Old 06-14-2007, 10:30 AM   #2
jabobadilla
LQ Newbie
 
Registered: May 2007
Distribution: CentOS
Posts: 8

Original Poster
Rep: Reputation: 0
After many days of research and networking, i finally got everything solved:

1) a) To fix the 'slist' problem:

Some old versions had problems if you started with replica-less server. If 'slist' does not report all servers, then most probably you have replica-less servers. Upgrade to latest ncpfs available. It should fix problem unless your tree is in inconsistent state.

b) To fix the "ncpmount: All referrals failed (-626) in nds login. Login denied." problem:

One thing you can try is that there is (undocumented option) -a <directory> to reuse your authentication information for another server. So you can just login into first server using:

ncpmount -S servera -A servera.dns.com -U userid -P password -V sys /tmp/servera

and then you can reuse this connection for other servers in same tree:

ncpmount -S serverb -A serverb.dns.com -a /tmp/servera -V sys /tmp/serverb
ncpmount -S serverc -A serverc.dns.com -a /tmp/servera -V sys /tmp/serverc

It might allow ncpfs to resolve your user name using servera's NDS database, avoiding -626 error. You should not log out from servera until you establish all your connections - when you log out yourself from servera, and then you'll try to use /tmp/serverb, it may tell you that you are not logged in - NDS has concept of 'monitored connection', which is one used for your initial authentication (usually one established with server which holds master or read-write replica of your account), and if that connection goes down, you are still logged to individual servers, but you are not known to NDS anymore, so you cannot authenticate yourself to additional servers.

To use '-a' option your kernel needs to be configured with option to save and restore NDS private data - 2.6.x kernels do not allow you to disable this option anymore, but 2.4.x kernels do - and if you disable it, -a will not work...

2) To fix the stable connection problem:

The tree is apparently in inconsistent state... You can try adding '-o tcp' option to ncpmount, it will then use TCP instead of UDP. In either case you should see warnings in `dmesg` that server aborted your connection.

3) To fix the Read/Write rights problem:

ncpmount has two switches for this. -f (file mode)and -d (dir mode). These options are used to determine what permissions should be assigned files and directories of the mounted volumes. You should probably use only 777 for -f & -d.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
ncpmount codepageproblem saavik Linux - Networking 1 01-13-2006 04:23 AM
ncpmount: No such device in mount(2) origamifreak Linux - Networking 8 10-24-2005 01:48 AM
ncpmount cplowe Linux - Software 0 08-27-2004 11:32 AM
ncpmount -Accessing novel Network files saurya_s Linux - Networking 0 12-13-2003 01:32 PM
ncpmount Netware5 lanif Linux - Networking 3 06-13-2003 10:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:20 PM.

Main Menu
Advertisement
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
Twitter: @linuxquestions
Open Source Consulting | Domain Registration