Contributions
ldap connection in groovy script in soapui
Hi, I am trying to create ldapuser through groovy script in soapui. Below is the code, I have placed the groovy ldap jar also. But not successful. package snippets.security.ldap.groovyldap.add import org.apache.directory.groovyldap.LDAP def ldap = LDAP.newInstance('ldap://148.147.35.152:389', 'cn=root,dc=Avaya', 'w00dstock') assert ! ldap.exists('cn=Heather Nova,ou=xyz,dc=abc') // define the attributes as a map def attrs = [ dn: 'cn=Heather Nova,ou=xyz,dc=abc', sn: 'Nova', changetype: 'add', givenName: 'Feather', MailboxNumber: '98223', ] ldap.add('cn=Heather Nova,ou=xyz,dc=abc', attrs) assert ldap.exists('cn=Heather Nova,ou=xyz,dc=abc') keep getting javax.naming,AuthunticationException, Ldap Error Code 38. Any help regarning this is really appreciative. I akso need to pass engrypted password. but first i need to make successfuk connection. Thanks Vinod1.9KViews0likes0Comments