Environment
Novell Open Enterprise Server (OES)
Novell Linux
401 error means unauthorized.
Novell Linux
401 error means unauthorized.
Situation
iManager gives "Error: Unknown error with error code: 401" when
performing cluster tasks.
Sometimes you see two versions of the novell-cluster-services rpm installed. If so remove the latest one with rpm -e novell-cluster-services-VERSION
Sometimes you see two versions of the novell-cluster-services rpm installed. If so remove the latest one with rpm -e novell-cluster-services-VERSION
Resolution
Edit the /etc/opt/novell/ncs/clstrlib.conf file to show the correct
admin distinguished name and password. This file is read/write for
root only.
Additional Information
Admin object that was used when creating the cluster has been
moved.
Password of admin object that was used to create the cluster has been changed.
NCS is not dependent upon the tree admin user; it's possible to create a
cluster admin user, and enter that user's credentials during cluster
configuration. The cluster admin user needs create rights in whatever container
you intend to create the cluster.
After OES Post Support Pack 2 updates the clstrlib.conf file will be encoded. If you need to change the information just enter what you need within the quotes in clear text and it will be re-encoded on reboot.
Example clstrlib.conf file
import clstrlibss
Edit the information in single quotes to match your cluster setup - double check for accuracy.
Then run "python fixclstrlib.py" which will over-write the current clstrlib.conf file; you should make a backup first.
Formerly known as TID# 10100769
Password of admin object that was used to create the cluster has been changed.
NCS is not dependent upon the tree admin user; it's possible to create a
cluster admin user, and enter that user's credentials during cluster
configuration. The cluster admin user needs create rights in whatever container
you intend to create the cluster.
After OES Post Support Pack 2 updates the clstrlib.conf file will be encoded. If you need to change the information just enter what you need within the quotes in clear text and it will be re-encoded on reboot.
Example clstrlib.conf file
(iclstrlibss
data
p0
(dp1
S'adminDn'
p2
S'cn=admin,o=novell'
p3
sS'ldapUrl'
p4
S'ldaps://151.155.247.116:636'
p5
sS'adminPw'
p6
S'novell'
p7
sS'clusterDn'
p8
S'cn=wss-linux-cluster,o=novell'
p9
sb.
data
p0
(dp1
S'adminDn'
p2
S'cn=admin,o=novell'
p3
sS'ldapUrl'
p4
S'ldaps://151.155.247.116:636'
p5
sS'adminPw'
p6
S'novell'
p7
sS'clusterDn'
p8
S'cn=wss-linux-cluster,o=novell'
p9
sb.
The clstrlib.conf file can also be recreated using the
following instructions:
Save the following lines in a python script called
/opt/novell/ncs/bin/fixclstrlib.py
import clstrlibss
c = clstrlibss.data()
c.ldapUrl = 'ldaps://' + '151.155.247.116' + ':' + '636'
c.adminDn = 'cn=admin,o=novell'
c.adminPw = 'novell'
c.clusterDn = 'cn=wss-linux-cluster,o=novell'
clstrlibss.save(c)
c.ldapUrl = 'ldaps://' + '151.155.247.116' + ':' + '636'
c.adminDn = 'cn=admin,o=novell'
c.adminPw = 'novell'
c.clusterDn = 'cn=wss-linux-cluster,o=novell'
clstrlibss.save(c)
Edit the information in single quotes to match your cluster setup - double check for accuracy.
Then run "python fixclstrlib.py" which will over-write the current clstrlib.conf file; you should make a backup first.
Formerly known as TID# 10100769