Debian Stretch: Samba Winbind Offline Logon Not working - kerberos keytab not persistent after reboot?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite
1












This is being tried onDebian stretch referred to as 9.6 in /etc/debian_version



I'm in a Windows Domain environment with two 2012R2 controllers that have IDMU/Unix Attributes.



Other versions of stuff:



Samba version 4.5.12-Debian
winbindd version 4.5.12-Debian


Also installed:



krb5-user
libnss-winbind
libpam-winbind
oddjob-mkhomedir


I'm hoping I can log in with domain users at default console user credential prompt. I've been trying ALL SORTS of stuff, but can't seem to get it to work.



I think my issue is that kerberos keytabs aren't persistent after reboot?



I followed this guide on the official Wiki: https://wiki.samba.org/index.php/PAM_Offline_Authentication



I tried it with the default setting of /tmp/krb5cc but no luck - thought process is that this location is not persistent after reboot?



So then I thought maybe I could get the keytab to save in another location besides /tmp so I set KRB5CACHE environment variable to a folder that's persistent - and I can get kinit to save there



But I can't get the /etc/security/pam_winbind.conf user keytab info to save in a different folder



Even if I change krb5_ccache_type = FILE:/my/persistent/location/krb5cc but it still always saves it as /tmp/krb5cc when I invoke:



# wbinfo -K DOMAIN\username%password


I CAN get the response of:



plaintext kerberos password authentication for [WEBTOOLavery%Person01] succeeded (requesting cctype: FILE)
user_flgs: NETLOGON_CACHED_ACCOUNT
credentials were put in: FILE:/tmp/krb5cc_0


but when I reboot it doesn't matter --



and ONLY if I invoke smbcontrol winbind offline - /etc/samba/smb.conf param winbind offline logon = yes does not seem to work, even though it's set.



(and yes, I have reset samba and winbind using /etc/init.d and systemctl after editing .conf files, not to mention rebooting over and over again to try the offline winbind login)



I even tried giving my domain user a UNIX passwd. Not even that worked.



So what's up ? Anybody have login for domain users after reboot?










share|improve this question





















  • Are you particularly wedded to winbind or would you consider sssd?
    – roaima
    Dec 4 at 19:35










  • I prefer winbind, it seems to work better with IDMU/Unix Attributes
    – AveryFreeman
    Dec 5 at 2:06










  • Grr. I just set up an Ubuntu Server 18.04 LTS VM and got the offline winbind login to work just fine. What gives, Debian? I thought you were cool...
    – AveryFreeman
    Dec 5 at 6:03














up vote
0
down vote

favorite
1












This is being tried onDebian stretch referred to as 9.6 in /etc/debian_version



I'm in a Windows Domain environment with two 2012R2 controllers that have IDMU/Unix Attributes.



Other versions of stuff:



Samba version 4.5.12-Debian
winbindd version 4.5.12-Debian


Also installed:



krb5-user
libnss-winbind
libpam-winbind
oddjob-mkhomedir


I'm hoping I can log in with domain users at default console user credential prompt. I've been trying ALL SORTS of stuff, but can't seem to get it to work.



I think my issue is that kerberos keytabs aren't persistent after reboot?



I followed this guide on the official Wiki: https://wiki.samba.org/index.php/PAM_Offline_Authentication



I tried it with the default setting of /tmp/krb5cc but no luck - thought process is that this location is not persistent after reboot?



So then I thought maybe I could get the keytab to save in another location besides /tmp so I set KRB5CACHE environment variable to a folder that's persistent - and I can get kinit to save there



But I can't get the /etc/security/pam_winbind.conf user keytab info to save in a different folder



Even if I change krb5_ccache_type = FILE:/my/persistent/location/krb5cc but it still always saves it as /tmp/krb5cc when I invoke:



# wbinfo -K DOMAIN\username%password


I CAN get the response of:



plaintext kerberos password authentication for [WEBTOOLavery%Person01] succeeded (requesting cctype: FILE)
user_flgs: NETLOGON_CACHED_ACCOUNT
credentials were put in: FILE:/tmp/krb5cc_0


but when I reboot it doesn't matter --



and ONLY if I invoke smbcontrol winbind offline - /etc/samba/smb.conf param winbind offline logon = yes does not seem to work, even though it's set.



(and yes, I have reset samba and winbind using /etc/init.d and systemctl after editing .conf files, not to mention rebooting over and over again to try the offline winbind login)



I even tried giving my domain user a UNIX passwd. Not even that worked.



So what's up ? Anybody have login for domain users after reboot?










share|improve this question





















  • Are you particularly wedded to winbind or would you consider sssd?
    – roaima
    Dec 4 at 19:35










  • I prefer winbind, it seems to work better with IDMU/Unix Attributes
    – AveryFreeman
    Dec 5 at 2:06










  • Grr. I just set up an Ubuntu Server 18.04 LTS VM and got the offline winbind login to work just fine. What gives, Debian? I thought you were cool...
    – AveryFreeman
    Dec 5 at 6:03












up vote
0
down vote

favorite
1









up vote
0
down vote

favorite
1






1





This is being tried onDebian stretch referred to as 9.6 in /etc/debian_version



I'm in a Windows Domain environment with two 2012R2 controllers that have IDMU/Unix Attributes.



Other versions of stuff:



Samba version 4.5.12-Debian
winbindd version 4.5.12-Debian


Also installed:



krb5-user
libnss-winbind
libpam-winbind
oddjob-mkhomedir


I'm hoping I can log in with domain users at default console user credential prompt. I've been trying ALL SORTS of stuff, but can't seem to get it to work.



I think my issue is that kerberos keytabs aren't persistent after reboot?



I followed this guide on the official Wiki: https://wiki.samba.org/index.php/PAM_Offline_Authentication



I tried it with the default setting of /tmp/krb5cc but no luck - thought process is that this location is not persistent after reboot?



So then I thought maybe I could get the keytab to save in another location besides /tmp so I set KRB5CACHE environment variable to a folder that's persistent - and I can get kinit to save there



But I can't get the /etc/security/pam_winbind.conf user keytab info to save in a different folder



Even if I change krb5_ccache_type = FILE:/my/persistent/location/krb5cc but it still always saves it as /tmp/krb5cc when I invoke:



# wbinfo -K DOMAIN\username%password


I CAN get the response of:



plaintext kerberos password authentication for [WEBTOOLavery%Person01] succeeded (requesting cctype: FILE)
user_flgs: NETLOGON_CACHED_ACCOUNT
credentials were put in: FILE:/tmp/krb5cc_0


but when I reboot it doesn't matter --



and ONLY if I invoke smbcontrol winbind offline - /etc/samba/smb.conf param winbind offline logon = yes does not seem to work, even though it's set.



(and yes, I have reset samba and winbind using /etc/init.d and systemctl after editing .conf files, not to mention rebooting over and over again to try the offline winbind login)



I even tried giving my domain user a UNIX passwd. Not even that worked.



So what's up ? Anybody have login for domain users after reboot?










share|improve this question













This is being tried onDebian stretch referred to as 9.6 in /etc/debian_version



I'm in a Windows Domain environment with two 2012R2 controllers that have IDMU/Unix Attributes.



Other versions of stuff:



Samba version 4.5.12-Debian
winbindd version 4.5.12-Debian


Also installed:



krb5-user
libnss-winbind
libpam-winbind
oddjob-mkhomedir


I'm hoping I can log in with domain users at default console user credential prompt. I've been trying ALL SORTS of stuff, but can't seem to get it to work.



I think my issue is that kerberos keytabs aren't persistent after reboot?



I followed this guide on the official Wiki: https://wiki.samba.org/index.php/PAM_Offline_Authentication



I tried it with the default setting of /tmp/krb5cc but no luck - thought process is that this location is not persistent after reboot?



So then I thought maybe I could get the keytab to save in another location besides /tmp so I set KRB5CACHE environment variable to a folder that's persistent - and I can get kinit to save there



But I can't get the /etc/security/pam_winbind.conf user keytab info to save in a different folder



Even if I change krb5_ccache_type = FILE:/my/persistent/location/krb5cc but it still always saves it as /tmp/krb5cc when I invoke:



# wbinfo -K DOMAIN\username%password


I CAN get the response of:



plaintext kerberos password authentication for [WEBTOOLavery%Person01] succeeded (requesting cctype: FILE)
user_flgs: NETLOGON_CACHED_ACCOUNT
credentials were put in: FILE:/tmp/krb5cc_0


but when I reboot it doesn't matter --



and ONLY if I invoke smbcontrol winbind offline - /etc/samba/smb.conf param winbind offline logon = yes does not seem to work, even though it's set.



(and yes, I have reset samba and winbind using /etc/init.d and systemctl after editing .conf files, not to mention rebooting over and over again to try the offline winbind login)



I even tried giving my domain user a UNIX passwd. Not even that worked.



So what's up ? Anybody have login for domain users after reboot?







samba active-directory kerberos domain winbind






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 4 at 19:15









AveryFreeman

1365




1365











  • Are you particularly wedded to winbind or would you consider sssd?
    – roaima
    Dec 4 at 19:35










  • I prefer winbind, it seems to work better with IDMU/Unix Attributes
    – AveryFreeman
    Dec 5 at 2:06










  • Grr. I just set up an Ubuntu Server 18.04 LTS VM and got the offline winbind login to work just fine. What gives, Debian? I thought you were cool...
    – AveryFreeman
    Dec 5 at 6:03
















  • Are you particularly wedded to winbind or would you consider sssd?
    – roaima
    Dec 4 at 19:35










  • I prefer winbind, it seems to work better with IDMU/Unix Attributes
    – AveryFreeman
    Dec 5 at 2:06










  • Grr. I just set up an Ubuntu Server 18.04 LTS VM and got the offline winbind login to work just fine. What gives, Debian? I thought you were cool...
    – AveryFreeman
    Dec 5 at 6:03















Are you particularly wedded to winbind or would you consider sssd?
– roaima
Dec 4 at 19:35




Are you particularly wedded to winbind or would you consider sssd?
– roaima
Dec 4 at 19:35












I prefer winbind, it seems to work better with IDMU/Unix Attributes
– AveryFreeman
Dec 5 at 2:06




I prefer winbind, it seems to work better with IDMU/Unix Attributes
– AveryFreeman
Dec 5 at 2:06












Grr. I just set up an Ubuntu Server 18.04 LTS VM and got the offline winbind login to work just fine. What gives, Debian? I thought you were cool...
– AveryFreeman
Dec 5 at 6:03




Grr. I just set up an Ubuntu Server 18.04 LTS VM and got the offline winbind login to work just fine. What gives, Debian? I thought you were cool...
– AveryFreeman
Dec 5 at 6:03















active

oldest

votes











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f485976%2fdebian-stretch-samba-winbind-offline-logon-not-working-kerberos-keytab-not-pe%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f485976%2fdebian-stretch-samba-winbind-offline-logon-not-working-kerberos-keytab-not-pe%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown






Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay