Quantcast
Channel: New board topics in SmartBear Community
Viewing all articles
Browse latest Browse all 20755

LDAPS connection

$
0
0

I have a groovy script to connect to LDAP server; the code is:

 

import org.apache.directory.groovyldap.LDAP
import org.apache.directory.groovyldap.Search
import org.apache.directory.groovyldap.SearchScope

ldap = LDAP.newInstance('ldap://<Ip address>:389/', 'cn=Manager,dc=telecom,dc=it', 'italtel123')

result = ldap.exists('uid=TstAut01,ou=People,dc=telecom,dc=it')

log.info result

 

It's possible to use the ldaps protocol instead of ldap (ldaps://<Ip address>:636/) ? 

 

Regards

Massimo


Viewing all articles
Browse latest Browse all 20755

Trending Articles