Cool Solutions

OESCommonProxy without a LDAP service at localhost


July 26, 2018 3:35 pm





When you use /opt/novell/proxymgmt/ and get an error in the /var/opt/novell/log/proxymgmt/pxymgmt.log this is mostly because the script uses the localhost for LDAP requests. But if there is no local eDir/nldap the requests fail!

Unfortunately the LDAP address for localhost is hard coded. To get the request running without have an local LDAP service, first backup the original file:

# cd /opt/novell/proxymgmt/
# cp -a change_proxy_pwd.sh_bak

then add the line:

LDAP_SRV=$(grep preferred-server /etc/nam.conf | cut -f2 -d=)

at the beginning of the script.


echo " example3: To provide the proxy details in interactive way: ./ -A no "
 echo ""
 exit 1;

LDAP_SRV=$(grep preferred-server /etc/nam.conf | cut -f2 -d=)

# This function executes the given command to retrieve or update the proxy credentials. It also retries the execution of the same command for 3 times in case of failure. This method is added to #provide the fix for the bug #859412.

This will read the preferred LDAP-Server from nam.conf and load the address to the variable LDAP_SRV.

(Maybe you’ll want to check before if NAM is configured in a correct manner and the LDAP-Server is reachable 😉 )

Next leave the editor and replace all with $LDAP_SRV

# sed s/\$LDAP_SRV/g change_proxy_pwd.sh_bak >

as an alternative use your preferred local editor to do this.

Next add the line:

TLS_REQCERT     allow

to /etc/openldap/ldap.conf (see TID7010961).

With these minor changes the change_proxy_pwd script is able to reach the LDAP-Server and the request is successful.

Do this on you own risk! And be aware that further updates from Micro Focus can replace your changes.


0 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 5 (0 votes, average: 0.00 out of 5)
You need to be a registered member to rate this post.

Tags: , , ,
Categories: File Analysis & Management, File Services and Management, IT Operations Management, Open Enterprise Server, Open Enterprise Server TKB, Technical


Disclaimer: This content is not supported by Micro Focus. It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test it thoroughly before using it in a production environment.