I am not sure why but when I try to connect with my IPSEC VPN client, authentications are failing. The ldap test passes on the ASA but when I try to login, the VPN client gives me authentication failure even though debugs show authentication was successful.
Anyone have any ideas?
User 'test1' should be able to authenticate based on group membership.
User 'test2' shouldn't be able to.
I already removed the attribute-map to see if that was the problem but I am still failing authentication.
Code:
ldap attribute-map CTVPNUSERS
map-name memberOf IETF-Radius-Class
map-value memberOf CN=VPNUSERS,CN=Users,DC=DOMAIN,DC=local CTVPN
aaa-server CTDC protocol ldap
aaa-server CTDC (inside) host 10.10.130.5
ldap-base-dn DC=DOMAIN,DC=local
ldap-group-base-dn DC=DOMAIN,DC=local
ldap-scope subtree
ldap-naming-attribute sAMAccountName
ldap-login-password *****
ldap-login-dn CN=VPNADMIN,OU=Remote Users,DC=DOMAIN,DC=local
server-type microsoft
ldap-attribute-map CTVPNUSERS
group-policy CTVPN internal
group-policy CTVPN attributes
dns-server value 10.10.130.5 10.10.132.5
vpn-tunnel-protocol IPSec
split-tunnel-policy tunnelspecified
split-tunnel-network-list value VPN-CROSSTIMBERS-splitTunnel
default-domain value DOMAIN.local
tunnel-group CTVPN type remote-access
tunnel-group CTVPN general-attributes
address-pool CTVPN
authentication-server-group CTDC
default-group-policy NoVPN
tunnel-group CTVPN ipsec-attributes
pre-shared-key *****
[19214] Session Start
[19214] New request Session, context 0xac639228, reqType = Authentication
[19214] Fiber started
[19214] Creating LDAP context with uri=ldap://10.10.130.5:389
[19214] Connect to LDAP server: ldap://10.10.130.5:389, status = Successful
[19214] supportedLDAPVersion: value = 3
[19214] supportedLDAPVersion: value = 2
[19214] Binding as VPNADMIN
[19214] Performing Simple authentication for VPNADMIN to 10.10.130.5
[19214] LDAP Search:
Base DN = [DC=DOMAIN,DC=local]
Filter = [sAMAccountName=test2]
Scope = [SUBTREE]
[19214] User DN = [CN=test2,OU=Remote users,DC=DOMAIN,DC=local]
[19214] Talking to Active Directory server 10.10.130.5
[19214] Reading password policy for test2, dn:CN=test2,OU=Remote users,DC=DOMAIN,DC=local
[19214] Read bad password count 0
[19214] Binding as test2
[19214] Performing Simple authentication for test2 to 10.10.130.5
[19214] Processing LDAP response for user test2
[19214] Message (test2):
[19214] Authentication successful for test2 to 10.10.130.5
[19214] Retrieved User Attributes:
[19214] objectClass: value = top
[19214] objectClass: value = person
[19214] objectClass: value = organizationalPerson
[19214] objectClass: value = user
[19214] cn: value = test2
[19214] givenName: value = test2
[19214] distinguishedName: value = CN=test2,OU=Remote users,DC=DOMAIN,DC=local
[19214] instanceType: value = 4
[19214] whenCreated: value = 20120215212221.0Z
[19214] whenChanged: value = 20120215212221.0Z
[19214] displayName: value = test2
[19214] uSNCreated: value = 2039637
[19214] uSNChanged: value = 2039642
[19214] name: value = test2
[19214] objectGUID: value = c{.@...E.h......
[19214] userAccountControl: value = 66048
[19214] badPwdCount: value = 0
[19214] codePage: value = 0
[19214] countryCode: value = 0
[19214] badPasswordTime: value = 0
[19214] lastLogoff: value = 0
[19214] lastLogon: value = 0
[19214] pwdLastSet: value = 129738145415596273
[19214] primaryGroupID: value = 513
[19214] objectSid: value = ............'!.|6..e.*......
[19214] accountExpires: value = 9223372036854775807
[19214] logonCount: value = 0
[19214] sAMAccountName: value = test2
[19214] sAMAccountType: value = 805306368
[19214] userPrincipalName: value = test2@DOMAIN.local
[19214] objectCategory: value = CN=Person,CN=Schema,CN=Configuration,DC=DOMAIN,DC=local
[19214] Fiber exit Tx=544 bytes Rx=2261 bytes, status=1
[19214] Session End
[19216] Session Start
[19216] New request Session, context 0xac639228, reqType = Authentication
[19216] Fiber started
[19216] Creating LDAP context with uri=ldap://10.10.130.5:389
[19216] Connect to LDAP server: ldap://10.10.130.5:389, status = Successful
[19216] supportedLDAPVersion: value = 3
[19216] supportedLDAPVersion: value = 2
[19216] Binding as VPNADMIN
[19216] Performing Simple authentication for VPNADMIN to 10.10.130.5
[19216] LDAP Search:
Base DN = [DC=DOMAIN,DC=local]
Filter = [sAMAccountName=test1]
Scope = [SUBTREE]
[19216] User DN = [CN=test1,OU=Remote users,DC=DOMAIN,DC=local]
[19216] Talking to Active Directory server 10.10.130.5
[19216] Reading password policy for test1, dn:CN=test1,OU=Remote users,DC=DOMAIN,DC=local
[19216] Read bad password count 0
[19216] Binding as test1
[19216] Performing Simple authentication for test1 to 10.10.130.5
[19216] Processing LDAP response for user test1
[19216] Message (test1):
[19216] Authentication successful for test1 to 10.10.130.5
[19216] Retrieved User Attributes:
[19216] objectClass: value = top
[19216] objectClass: value = person
[19216] objectClass: value = organizationalPerson
[19216] objectClass: value = user
[19216] cn: value = test1
[19216] givenName: value = test1
[19216] distinguishedName: value = CN=test1,OU=Remote users,DC=DOMAIN,DC=local
[19216] instanceType: value = 4
[19216] whenCreated: value = 20120215212144.0Z
[19216] whenChanged: value = 20120215212233.0Z
[19216] displayName: value = test1
[19216] uSNCreated: value = 2039625
[19216] memberOf: value = CN=VPNUSERS,CN=Users,DC=DOMAIN,DC=local
[19216] mapped to IETF-Radius-Class: value = CTVPN
[19216] mapped to LDAP-Class: value = CTVPN
[19216] uSNChanged: value = 2039647
[19216] name: value = test1
[19216] objectGUID: value = <......I.yv.&...
[19216] userAccountControl: value = 66048
[19216] badPwdCount: value = 0
[19216] codePage: value = 0
[19216] countryCode: value = 0
[19216] badPasswordTime: value = 129738266759183593
[19216] lastLogoff: value = 0
[19216] lastLogon: value = 129738266902931753
[19216] pwdLastSet: value = 129738145534344753
[19216] primaryGroupID: value = 513
[19216] objectSid: value = ............'!.|6..e.*..~...
[19216] accountExpires: value = 9223372036854775807
[19216] logonCount: value = 0
[19216] sAMAccountName: value = test1
[19216] sAMAccountType: value = 805306368
[19216] userPrincipalName: value = test1@DOMAIN.local
[19216] objectCategory: value = CN=Person,CN=Schema,CN=Configuration,DC=DOMAIN,DC=local
[19216] Fiber exit Tx=544 bytes Rx=2357 bytes, status=1
[19216] Session End