Koozali.org: home of the SME Server

Client Authentication:Ubuntu via sssd/ldap

Offline pelli

  • ***
  • 66
  • +0/-0
Client Authentication:Ubuntu via sssd/ldap
« on: September 15, 2016, 04:33:03 PM »
Hello, i follow this how-to https://wiki.contribs.org/Client_Authentication:Ubuntu_via_sssd/ldap and all work except shutdown/reboot. Any user (local admin ubuntu and sme ldap user) can't shutdown or reboot the machine. Also in the login box the reboot and shutdown option are gray (not selectable)

Any suggestion?

Thanks

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Client Authentication:Ubuntu via sssd/ldap
« Reply #1 on: September 15, 2016, 05:01:10 PM »
I suggest you to ask elsewhere, in any ubuntu related forum.. just explain your configuration (I bet 0,50 € is something related to pam)


Offline pelli

  • ***
  • 66
  • +0/-0
Re: Client Authentication:Ubuntu via sssd/ldap
« Reply #2 on: September 15, 2016, 05:20:20 PM »
I suggest you to ask elsewhere, in any ubuntu related forum.. just explain your configuration (I bet 0,50 € is something related to pam)

bingo. i find the solution

edit the file /etc/pam.d/common-session and add the line
session         optional                        pam_systemd.so

Thanks


Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Client Authentication:Ubuntu via sssd/ldap
« Reply #3 on: September 15, 2016, 06:01:48 PM »
well, please amend the wiki page accordingly, thank you

Offline ReetP

  • *
  • 3,949
  • +6/-0
Re: Client Authentication:Ubuntu via sssd/ldap
« Reply #4 on: September 15, 2016, 06:03:43 PM »
Please note that if you read further down the page this is already mentioned here :

https://wiki.contribs.org/Client_Authentication:Ubuntu_via_sssd/ldap#System_Permissions_.26_PolicyKit

Please read all the 'Desktop Setup' section

B. Rgds
John
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline pelli

  • ***
  • 66
  • +0/-0
Re: Client Authentication:Ubuntu via sssd/ldap
« Reply #5 on: September 15, 2016, 06:18:04 PM »
Please note that if you read further down the page this is already mentioned here :

https://wiki.contribs.org/Client_Authentication:Ubuntu_via_sssd/ldap#System_Permissions_.26_PolicyKit

Please read all the 'Desktop Setup' section

B. Rgds
John

yes is mentioned but the file to modify is another

"I also found to enable shutdown/restart, network indicator etc I had to add this to /etc/auth-client-config/profile.d/sss "
For enable shutdown and restart I also modified the file /etc/pam.d/common-session

Offline ReetP

  • *
  • 3,949
  • +6/-0
Re: Client Authentication:Ubuntu via sssd/ldap
« Reply #6 on: September 15, 2016, 06:32:20 PM »
You still did not read the wiki page correctly.

Quote
System Permissions & PolicyKit

I also found to enable shutdown/restart, network indicator etc I had to add this to /etc/auth-client-config/profile.d/sss

pam_session=
               session         optional                        pam_systemd.so

That means you need to add it AT THE START and then when you run this

Code: [Select]
sudo auth-client-config -a -p sss
It will create the file  /etc/pam.d/common-session correctly without you having to edit it manually..... and this is the preferred way to do it so you can revert your changes with

Code: [Select]
sudo auth-client-config -a -p sss -r
The also occurs for mounting shares.

So the wiki is correct.

B. Rgds
John
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline pelli

  • ***
  • 66
  • +0/-0
Re: Client Authentication:Ubuntu via sssd/ldap
« Reply #7 on: September 16, 2016, 08:52:19 AM »
You still did not read the wiki page correctly.

That means you need to add it AT THE START and then when you run this

Code: [Select]
sudo auth-client-config -a -p sss
It will create the file  /etc/pam.d/common-session correctly without you having to edit it manually..... and this is the preferred way to do it so you can revert your changes with

Code: [Select]
sudo auth-client-config -a -p sss -r
The also occurs for mounting shares.

So the wiki is correct.

B. Rgds
John

Ok, thanks John.

Offline ReetP

  • *
  • 3,949
  • +6/-0
Re: Client Authentication:Ubuntu via sssd/ldap
« Reply #8 on: September 16, 2016, 02:30:31 PM »
No problems :-)

If you notice anything else please let me know and I will look.

B. Rgds
John
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline pelli

  • ***
  • 66
  • +0/-0
Re: Client Authentication:Ubuntu via sssd/ldap
« Reply #9 on: September 30, 2016, 05:27:41 PM »
Hello, i resume this post for a problem with mount shares.  the automatically mounts shares not work.  where i can find the log for examine the problem?

Thanks

Offline ReetP

  • *
  • 3,949
  • +6/-0
Re: Client Authentication:Ubuntu via sssd/ldap
« Reply #10 on: September 30, 2016, 07:47:50 PM »
I can't remember specifically... try the usual /var/log hierachy. I think you may have a sssd dir in there now ?

What about showing some configs ? Did you follow the wiki ?
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation