I am trying to authenticate linux user with pam_ncp_auth.so module I have been
partly successful but not like I want it. We have thousands of users and a lot
of contexts and I want everyone to be able to login. We have an IP only
environment with netware 6.5
I can use "ndsserver=" option but whatever I put to "tree=" I always get
"Server not found (0x8847)". ncpmount gives a similar error if you use it
without the -A flag. In theory I could add all the contexts to "ndsserver="
but there are just too many of them and they also keep changing :-(.

Is there a way I could just use the tree name or larger contexts with this? Is
there another way?

With this line in /etc/pam.d login I am able to log myself in with my
novell-account (\ means theres no really cr:

auth required /lib/security/pam_ncp_auth.so -zA -A -d -mnovell \
-a -u,,r,gcd tree=edir.cc.jyu.fi:atk.henk.jyu \
ndsserver=edir.cc.jyu.fi:atk.henk.jyu

And it nicely creates an account with appropriate UID and GID and mounts my
netware home too.
From the output you can see that it fails to connect to the tree but succeeds
with the server. edir should be the server with the tree (tree is server is
tree, says my Novell guru)

Thanks for any ideas,
Tommi


--------
Jun 16 15:53:08 mad-219-01 pam_ncp_auth[4191]: new default mounting point is
"novell"
Jun 16 15:53:08 mad-219-01 pam_ncp_auth[4191]: using tree edir.cc.jyu.fi ctxs
atk.henk.jyu group (null)
Jun 16 15:53:08 mad-219-01 pam_ncp_auth[4191]: Server not found (0x8847) when
trying to open connection to tree edir.cc.jyu.fi
Jun 16 15:53:08 mad-219-01 pam_ncp_auth[4191]: using server edir.cc.jyu.fi ctxs
atk.henk.jyu group (null)
Jun 16 15:53:08 mad-219-01 pam_ncp_auth[4191]: nw_create_verify_conn_to_tree:
trying to resolve tomhuhta.atk.henk.jyu
Jun 16 15:53:08 mad-219-01 pam_ncp_auth[4191]: trying to login as
tomhuhta.atk.henk.jyu
Jun 16 15:53:08 mad-219-01 pam_ncp_auth[4191]: User tomhuhta.atk.henk.jyu was
successfully authorized by NDS server edir.cc.jyu.fi on tree JY
Jun 16 15:53:08 mad-219-01 pam_ncp_auth[4191]: Auth OK
Jun 16 15:53:08 mad-219-01 pam_ncp_auth[4191]: User has DN
tomhuhta.ATK.HENK.JYU