I am not well versed in LDAP and I am having some trouble getting it to work as it always comes back with invalid credentials even though I know the credentials are valid.
I think something is wrong with the DN in the bind, but have not been able to take any examples online and convert them to Integrator.
Our sys admin gave me the DC to our AD domain and recommends not using the exact OU for the user accounts.
I am binding to the service (it loads OK)
Code: Select all
#JSMXCMD := 'SERVICE_LOAD SERVICE (OpenLDAPService) TRACE(*YES)'
use builtin(JSMX_COMMAND) with_args(#JSMXHDLE #JSMXCMD) to_get(#JSMXSTS #JSMXMSG)
#COM_OWNER.Check( #JSMXCMD #JSMXSTS #JSMXMSG )
#JSMXCMD := ('BIND HOST(&1) DN(cn=&2) PASSWORD(&3)').Substitute( #LDAPServer #Username #Password )
use builtin(JSMX_COMMAND) with_args(#JSMXHDLE #JSMXCMD) to_get(#JSMXSTS #JSMXMSG)
#COM_OWNER.Check( #JSMXCMD #JSMXSTS #JSMXMSG )
Code: Select all
=================== TRACE OPEN ===================
manager: version : 14.1.0
manager: date : 2017-06-06 10:49:23 -0500
--------------------------------------------------
Process : *COMPONENT
Function : *COMP
Partition : SYS
Job Name : JOB002908
Job User : JRYOUNG
Job Number : 002908
Command : SERVICE_LOAD SERVICE(OpenLDAPService) TRACE(*YES)
Command : OK "Service successfully loaded"
--------------------------------------------------
--------------------------------------------------
Process : *COMPONENT
Function : *COMP
Partition : SYS
Job Name : JOB002908
Job User : JRYOUNG
Job Number : 002908
Command : BIND DN(cn=HQ\JRYOUNG) PASSWORD(*****) HOST(********.com)
Use plain socket connection
Connect to : *********.com:389
Create bind constraints
Use simple bind mechanism
Authentication name : cn=HQ\JRYOUNG
Command : ERROR "Invalid Credentials"
--------------------------------------------------
--------------------------------------------------
Process : *COMPONENT
Function : *COMP
Partition : SYS
Job Name : JOB002908
Job User : JRYOUNG
Job Number : 002908
Command : UNBIND
Command : OK ""
--------------------------------------------------
--------------------------------------------------
Process : *COMPONENT
Function : *COMP
Partition : SYS
Job Name : JOB002908
Job User : JRYOUNG
Job Number : 002908
Command : SERVICE_UNLOAD
Command : OK "Service successfully unloaded"
--------------------------------------------------
=================== TRACE CLOSE ==================
Any ideas on how to format the DN in the bind?
Thanks,
Joe