Salesforce

KB-5202: Failed to start slapd with ldap TLS support via Centrify ldapproxy

« Go Back

Information

 
TitleKB-5202: Failed to start slapd with ldap TLS support via Centrify ldapproxy
URL NameKB-5202-Failed-to-start-slapd-with-ldap-TLS-support-via-Centrify-ldapproxy
Knowledge Article TypeProblem / Resolution
Article TypeKnowledge
ArticleType 
ProductAuthentication Service
ComponentLDAP Proxy
Version 
Tagsldapproxy, slapd, ldap, tls, solaris, 2015, ldap://, ldaps://, startup_opts, centrify-ldapproxy
Internal CommentsGenerated from bug 75495 notifysupport. Comment 2 & unit test in comment 7:

"many ways to do this ... choose one:
1. provide a script where (root) user can run to modify the startup method to do -h ldaps://

2. have a trigger file in /etc/centrifydc/openldap where the startup method can interrogate to choose -h ldap:// or ldaps://

3. correlation of (2), you may even be able to read a configuration file to pick up all the needed startup parameters ...

Support, we need to KB this."
Article Edits4/12/2021 - CC - added in the option for AIX and changed the examples into Courier New Font, added some additional tags
Bug #75495, https://jira.centrify.com/browse/CS-35083
Solution ID
Knowledge Base Article Details
Applies to: Centrify DirectControl version 5.2.2 (Suite 2015) and higher on all platforms.
 

Problem:
 
Failed to start slapd with ldap TLS support when started via centrify-ldapproxy
 
 
Cause:

When slapd is started via centrify-ldapproxy script with ldap TLS support (-h ldaps:///), the process starts without the added ldap TLS support parameters.

Example:

Good: /usr/share/centrifydc/libexec/slapd -h ldaps:///
Bad: /usr/share/centrifydc/bin/centrify-ldapproxy start -h ldaps:///
  

Workaround(for versions of DirectControl <5.2.3):

There are three options to work around this issue:
 
1. Provide a script where user (root) can modify the startup method to add the required '-h ldaps:///'
 
2. Create a trigger file within /etc/centrifydc/openldap which will allow the startup method to interrogate and choose '-h ldap:///' or '-h ldaps:///'
 
3. Correlation of (2), you may be able to reference a standalone configuration file to pick up all needed startup parameters.


Resolution:

As of Suite 2015.1, there is an added option in the startup script for ldapproxy: "STARTUP_OPTS". The service's startup script will source this option and pass the indicated startup options to slapd.

Example: To add the option for TLS support, the following method can be used:
 

Solaris:
# svccfg -s centrify-ldapproxy setprop 'slapd/STARTUP_OPTS=("-h" "ldaps:///")'

-- Demo -- 
root@vantaa-sol11:/usr/share/centrifydc/bin# svccfg -s centrify-ldapproxy setprop 'slapd/STARTUP_OPTS=("-h" "ldaps:///")'
root@vantaa-sol11:/usr/share/centrifydc/bin# centrify-ldapproxy start
Centrify-ldapproxy Service started.
root@vantaa-sol11:/usr/share/centrifydc/bin# ps -ef | grep slap
    root  9740     1   0 11:11:16 ?           0:00 /usr/share/centrifydc/libexec/slapd -h ldaps:///
----------

AIX:
# chssys -a "-d 0 -h ldaps:///" -s centrify-ldapproxy

-- Demo --
bash-4.4# chssys -a "-d 0 -h ldaps:///" -s centrify-ldapproxy
0513-077 Subsystem has been changed.
bash-4.4# /usr/share/centrifydc/bin/centrify-ldapproxy start
Centrify-ldapproxy Service started.
bash-4.4# ps -ef | grep slap
    root 13107362 31064274   0 15:06:26  pts/0  0:00 grep slapd
    root 27918452 15728830   0 15:06:16      -  0:00 /usr/share/centrifydc/libexec/slapd -d 0 -h ldaps:///
----------

RHEL/Debian/HPUX/SUSE/other:
# echo "STARTUP_OPTS=\"-h ldaps:///\"" >> /etc/rc.config.d/centrify-ldapproxy

-- Demo --
[root@au_64rhel5 init.d]# echo "STARTUP_OPTS=\"-h ldaps:///\"" >> /etc/sysconfig/centrify-ldapproxy
[root@au_64rhel5 init.d]# /etc/init.d/centrify-ldapproxy start
Starting Centrify ldapproxy:                               [  OK  ]
[root@au_64rhel5 init.d]# ps -ef | grep slap
    root     16645     1  0 11:15 ?        00:00:00 /usr/share/centrifydc/libexec/slapd -h ldaps:///
----------

Created ByTony Atkinson
Solution CreatorTony Atkinson
DraftNot Checked
LithiumId
Lithium_Board_Id
Lithium_View_Href
Tags 
Category 
ArticleImage
Known IssuesNot Checked

Powered by