Closed achurak closed 1 year ago
Hi,
does
printf "0 TACPLUS\n4 achurak\n49 INFO\n=\n" | env \
LDAP_SERVER_TYPE="generic" \
LDAP_HOSTS="x.x.x.x:389 x.x.x.x:389" \
LDAP_BASE="dc=example,dc=com" \
LDAP_USER="cn=user,dc=example,dc=com" \
LDAP_PASSWD="secret" \
FLAG_USE_MEMBEROF=1 \
TACACS_GROUP_PREFIX="tacacs_" \
USE_TLS=1 \
/usr/local/lib/mavis/mavis_tacplus_ldap.pl
display the memberOf DNs (attribute id: 1)?
Cheers,
Marc
Doesn't look like it:
0 TACPLUS
4 achurak
5 uid=achurak,ou=users,dc=example,dc=com
6 ACK
49 INFO
=0
But when I run ldapsearch
I do see my group membership:
# ldapsearch -x -H ldap://x.x.x.x -ZZ -b "dc=example,dc=com" -D 'cn=user,dc=example,dc=com' -W uid=achurak memberof
# extended LDIF
#
# LDAPv3
# base <dc=example,dc=com> with scope subtree
# filter: uid=achurak
# requesting: memberof
#
# achurak, users, example.com
dn: uid=achurak,ou=users,dc=example,dc=com
memberOf: cn=netadmins,ou=groups,dc=example,dc=com
# search result
search: 3
result: 0 Success
Hi Alexey,
your "netadmins" group doesn't match your TACACS_GROUP_PREFIX . Please try
setenv TACACS_GROUP_PREFIX = ""
Cheers,
Marc
It worked! Thanks so much, Marc!
I didn't realize it was a mandatory parameter and had to be set to ""
even if there's no prefix at all. I tried with it being unset and it didn't work either.
Hello,
I've been trying to make
tac_plus-ng
work with openldap for a while now but all my attempts to use group membership to assign user profiles have failed so far. We havememberof
overlay enabled on the ldap side and I can see my groups membership returned when I runldapsearch
while requestingmemberof
attribute specifically or all atributes (+
), however I'm not able to usememberof
conditions in the rulesets andtactrace.pl
doesn't show any groups being returned/used:My config looks like this:
What am I doing wrong? Most examples and documentation show MS AD as a MAVIS backend, so there's not a lot of information available around openldap integration unfortunately.