Author Topic: apache tomcat freeipa authentication  (Read 160 times)

Offline adizero

  • Member
  • **
  • Posts: 259
apache tomcat freeipa authentication
« on: May 23, 2017, 04:42:33 PM »
mga bro,

Freeipa - centos
apache tomcat 8 - centos

File : server.xml


Ang error parati "  TTP Status 500 - org.springframework.dao.IncorrectResultSizeDataAccessException: Incorrect result size: expected 1, actual 2"


nilalgayan namin ng authentication ung apache tomcat 8  server.xml base sa existing  freeipa namin na centos

pero ayaw gumana ano kaya problema sa java code below ?



    <!-- CONFIGURATION FOR domainabc LDAP -->
    <Environment name="ldap/provider_url"
                 value="ldap://server1.domainabc.org:389"
                 type="java.lang.String"
                 override="false" />
    <Environment name="ldap/search_base"
                 value="dc=domainabc,dc=org"
                 type="java.lang.String"
                 override="false" />
    <Environment name="ldap/search_filter"
                 value="(uid=admin)"
                 type="java.lang.String"
                 override="false" />
   


[root@server1]# cat /etc/openldap/ldap.conf
#File modified by ipa-client-install

URI ldaps://server1.domainabc.org
BASE dc=domainabc,dc=org
TLS_CACERT /etc/ipa/ca.crt


# ldapsearch -x uid=admin
# extended LDIF
#
# LDAPv3
# base <dc=domainabcap,dc=org> (default) with scope subtree
# filter: uid=admin
# requesting: ALL
#

# admin, users, compat, domainabcap.org
dn: uid=admin,cn=users,cn=compat,dc=domainabcap,dc=org
objectClass: posixAccount
objectClass: top
gecos: Administrator
cn: Administrator
uidNumber: 50100
gidNumber: 50100
loginShell: /bin/bash
homeDirectory: /home/admin
uid: admin