Discussion:
[Freeipa-users] HBAC not working, freeipa 4.4, sssd 1.15.1
Lachlan Musicman
2017-03-16 00:36:57 UTC
Permalink
I'm experiencing issues with HBAC and I think it's a bug in sssd. Not sure
if better to report to here or sssd mailing list. Also sssd in pagure is
bare and I didn't want to sully the blank slate. (
https://pagure.io/sssd/issues )

The details:

env: CentOS 7.3, FreeIPA 4.4, sssd 1.15.1 from COPR

On the IPA server:

- "ipa hbactest ..." returns TRUE, so everything seems set up correctly.


When I try to login to the test client, I get denied.

On the test client:

- hbac_eval_user_element is returning a wrong value. This is seen in
sssd_domain.log, it's returning 25. My test user is in 37 groups. This is
seen on the IPA server via id username. On the test client id username
returns 36 groups, the one missing is an IPA (not AD) group that was made
for HBAC rules. I have sanitized logs available.

- taking ldbsearch -H /var/lib/sss/db/cache_domain.com.ldb
'(objectclass=user)' and finding the record in question shows the same 36
groups available. The missing group shouldn't affect ability to login via
HBAC

- getent group (groupname) works as expected. Also worth noting that the
group missing from id username shows that user in getent.

For reference, on the client the sssd service was stopped, the cache
deleted, and the service started again the night before after which the
server wasn't accessed by anyone. I find that this is necessary for the
cache to populate.

Should I put in a bug report against SSSD or FreeIPA?

While HBAC is in FreeIPA, I think that this is an issue in SSSD
(specifically ?


cheers
L.




------
The most dangerous phrase in the language is, "We've always done it this
way."

- Grace Hopper
Jakub Hrozek
2017-03-16 08:05:58 UTC
Permalink
Post by Lachlan Musicman
I'm experiencing issues with HBAC and I think it's a bug in sssd. Not sure
if better to report to here or sssd mailing list. Also sssd in pagure is
bare and I didn't want to sully the blank slate. (
https://pagure.io/sssd/issues )
env: CentOS 7.3, FreeIPA 4.4, sssd 1.15.1 from COPR
- "ipa hbactest ..." returns TRUE, so everything seems set up correctly.
When I try to login to the test client, I get denied.
- hbac_eval_user_element is returning a wrong value. This is seen in
sssd_domain.log, it's returning 25. My test user is in 37 groups. This is
seen on the IPA server via id username. On the test client id username
returns 36 groups, the one missing is an IPA (not AD) group that was made
for HBAC rules. I have sanitized logs available.
- taking ldbsearch -H /var/lib/sss/db/cache_domain.com.ldb
'(objectclass=user)' and finding the record in question shows the same 36
groups available. The missing group shouldn't affect ability to login via
HBAC
- getent group (groupname) works as expected. Also worth noting that the
group missing from id username shows that user in getent.
For reference, on the client the sssd service was stopped, the cache
deleted, and the service started again the night before after which the
server wasn't accessed by anyone. I find that this is necessary for the
cache to populate.
Should I put in a bug report against SSSD or FreeIPA?
While HBAC is in FreeIPA, I think that this is an issue in SSSD
(specifically ?
Yes, SSSD.

I remember you had some intermittent issues in the past, is this one
reproducable?
--
Manage your subscription for the Freeipa-users mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-users
Go to http://freeipa.org for more info on the project
Lachlan Musicman
2017-03-16 08:56:58 UTC
Permalink
Yes. What I do would you like? Current debug levels are at 8

L.
Post by Jakub Hrozek
Post by Lachlan Musicman
I'm experiencing issues with HBAC and I think it's a bug in sssd. Not
sure
Post by Lachlan Musicman
if better to report to here or sssd mailing list. Also sssd in pagure is
bare and I didn't want to sully the blank slate. (
https://pagure.io/sssd/issues )
env: CentOS 7.3, FreeIPA 4.4, sssd 1.15.1 from COPR
- "ipa hbactest ..." returns TRUE, so everything seems set up correctly.
When I try to login to the test client, I get denied.
- hbac_eval_user_element is returning a wrong value. This is seen in
sssd_domain.log, it's returning 25. My test user is in 37 groups. This is
seen on the IPA server via id username. On the test client id username
returns 36 groups, the one missing is an IPA (not AD) group that was made
for HBAC rules. I have sanitized logs available.
- taking ldbsearch -H /var/lib/sss/db/cache_domain.com.ldb
'(objectclass=user)' and finding the record in question shows the same 36
groups available. The missing group shouldn't affect ability to login via
HBAC
- getent group (groupname) works as expected. Also worth noting that the
group missing from id username shows that user in getent.
For reference, on the client the sssd service was stopped, the cache
deleted, and the service started again the night before after which the
server wasn't accessed by anyone. I find that this is necessary for the
cache to populate.
Should I put in a bug report against SSSD or FreeIPA?
While HBAC is in FreeIPA, I think that this is an issue in SSSD
(specifically ?
Yes, SSSD.
I remember you had some intermittent issues in the past, is this one
reproducable?
--
https://www.redhat.com/mailman/listinfo/freeipa-users
Go to http://freeipa.org for more info on the project
Jakub Hrozek
2017-03-16 09:09:30 UTC
Permalink
Post by Lachlan Musicman
Yes. What I do would you like? Current debug levels are at 8
Logs and id output from the server and the client at the same time..
--
Manage your subscription for the Freeipa-users mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-users
Go to http://freeipa.org for more info on the project
Lachlan Musicman
2017-03-16 21:35:42 UTC
Permalink
Which logs do you want from the server?

------
The most dangerous phrase in the language is, "We've always done it this
way."

- Grace Hopper
Post by Jakub Hrozek
Post by Lachlan Musicman
Yes. What I do would you like? Current debug levels are at 8
Logs and id output from the server and the client at the same time..
Jakub Hrozek
2017-03-17 08:20:03 UTC
Permalink
Post by Lachlan Musicman
Which logs do you want from the server?
NSS and domain
--
Manage your subscription for the Freeipa-users mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-users
Go to http://freeipa.org for more info on the project
Loading...