# vMA 6.0 Active Directory user login

**URL:** <https://forums.suse.com/t/vma-6-0-active-directory-user-login/27391>\
**Category:** SLES Configure-Administer\
**Created:** [August 31, 2015, 5:14pm UTC](https://forums.suse.com/t/vma-6-0-active-directory-user-login/27391 "2015-08-31T17:14:38Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomeksmi](https://avatars.discourse-cdn.com/v4/letter/t/bc79bd/32.png) [@tomeksmi](https://forums.suse.com/u/tomeksmi)\
**Post date:** [August 31, 2015, 5:14pm UTC](https://forums.suse.com/t/vma-6-0-active-directory-user-login/27391/1 "2015-08-31T17:14:38Z")

</div>

I’ve successfully joined vMA aplliance based on SUSE Linux Enterprise Server 11 (x86\_64) (VERSION = 11, PATCHLEVEL = 3)  
to AD domain. However AD users can login to appliance only using local console (login: class\Administrator) but not using ssh.  
Here is example:  
login as: [Administrator@class.local](mailto:Administrator@class.local)@vma1  
Welcome to SUSE Linux Enterprise Server 11 SP3 for VMware (x86\_64) - Kernel \r (\l).

Using keyboard-interactive authentication.  
Password:  
Access denied

Messages from /var/log/messages  
2015-08-28T11:59:01+02:00 vma1 sshd[5545]: Invalid user ‘class\\Administrator’@vma1 from 10.216.1.143  
2015-08-28T11:59:01+02:00 vma1 sshd[5545]: input\_userauth\_request: invalid user ‘class\\\\Administrator’@vma1 [preauth]  
2015-08-28T11:59:01+02:00 vma1 sshd[5545]: Postponed keyboard-interactive for invalid user ‘class\\\\Administrator’@vma1 from 10.216.1.143 port 40538 ssh2 [preauth]  
2015-08-28T11:59:04+02:00 vma1 sshd[5547]: pam\_unix2(sshd:auth): Unknown option: `try\_first\_pass’  
2015-08-28T11:59:04+02:00 vma1 sshd[5547]: pam\_tally2(sshd:auth): pam\_get\_uid; no such user  
2015-08-28T11:59:08+02:00 vma1 sshd[5545]: error: PAM: User not known to the underlying authentication module for illegal user ‘class\\Administrator’@vma1 from 10.216.1.143  
2015-08-28T11:59:08+02:00 vma1 sshd[5545]: Failed keyboard-interactive/pam for invalid user ‘class\\Administrator’@vma1 from 10.216.1.143 port 40538 ssh2  
2015-08-28T11:59:08+02:00 vma1 sshd[5545]: Postponed keyboard-interactive for invalid user ‘class\\\\Administrator’@vma1 from 10.216.1.143 port 40538 ssh2 [preauth]

Messages from /var/log/auth.log  
2015-08-28T11:57:49+02:00 vma1 sshd[5538]: Invalid user ‘class\\Administrator’@vma1 from 10.216.1.143  
2015-08-28T11:57:49+02:00 vma1 sshd[5538]: Invalid user ‘class\\Administrator’@vma1 from 10.216.1.143  
2015-08-28T11:57:49+02:00 vma1 sshd[5538]: input\_userauth\_request: invalid user ‘class\\\\Administrator’@vma1 [preauth]  
2015-08-28T11:57:49+02:00 vma1 sshd[5538]: input\_userauth\_request: invalid user ‘class\\\\Administrator’@vma1 [preauth]  
2015-08-28T11:57:49+02:00 vma1 sshd[5538]: Postponed keyboard-interactive for invalid user ‘class\\\\Administrator’@vma1 from 10.216.1.143 port 40528 ssh2 [preauth]  
2015-08-28T11:57:49+02:00 vma1 sshd[5538]: Postponed keyboard-interactive for invalid user ‘class\\\\Administrator’@vma1 from 10.216.1.143 port 40528 ssh2 [preauth]  
2015-08-28T11:57:53+02:00 vma1 sshd[5540]: pam\_unix2(sshd:auth): Unknown option: `try\_first\_pass’  
2015-08-28T11:57:53+02:00 vma1 sshd[5540]: pam\_tally2(sshd:auth): pam\_get\_uid; no such user  
2015-08-28T11:57:57+02:00 vma1 sshd[5538]: error: PAM: User not known to the underlying authentication module for illegal user ‘class\\Administrator’@vma1 from 10.216.1.143  
2015-08-28T11:57:57+02:00 vma1 sshd[5538]: error: PAM: User not known to the underlying authentication module for illegal user ‘class\\Administrator’@vma1 from 10.216.1.143  
2015-08-28T11:57:57+02:00 vma1 sshd[5538]: Failed keyboard-interactive/pam for invalid user ‘class\\Administrator’@vma1 from 10.216.1.143 port 40528 ssh2  
2015-08-28T11:57:57+02:00 vma1 sshd[5538]: Failed keyboard-interactive/pam for invalid user ‘class\\Administrator’@vma1 from 10.216.1.143 port 40528 ssh2  
2015-08-28T11:57:57+02:00 vma1 sshd[5538]: Postponed keyboard-interactive for invalid user ‘class\\\\Administrator’@vma1 from 10.216.1.143 port 40528 ssh2 [preauth]  
2015-08-28T11:57:57+02:00 vma1 sshd[5538]: Postponed keyboard-interactive for invalid user ‘class\\\\Administrator’@vma1 from 10.216.1.143 port 40528 ssh2 [preauth]

already tried different combinations all with similar results  
‘class\Administrator’@vma1  
class\\Administrator@vma1  
class\\Administrator@vma1  
[Administrator@class.local](mailto:Administrator@class.local)  
Administrator@class@vma1  
Administrator/class  
class/administrator  
class\\Administrator@local  
‘class\\Administrator’@local

---

<div class="post-metadata">

**Author:** ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)\
**Post date:** [August 31, 2015, 5:23pm UTC](https://forums.suse.com/t/vma-6-0-active-directory-user-login/27391/2 "2015-08-31T17:23:23Z")

</div>

Hi tomeksmi,

> However AD users can login to appliance only using local console (login: class\Administrator) but not using ssh.

compare /etc/pam.d/login and /etc/pam.d/sshd - probably “login” was modified to suit AD needs, while sshd wasn’t…

Regards,  
Jens

---

<div class="post-metadata">

**Author:** ![tomeksmi](https://avatars.discourse-cdn.com/v4/letter/t/bc79bd/32.png) [@tomeksmi](https://forums.suse.com/u/tomeksmi)\
**Post date:** [August 31, 2015, 6:04pm UTC](https://forums.suse.com/t/vma-6-0-active-directory-user-login/27391/3 "2015-08-31T18:04:42Z")

</div>

Please look at the files below and advise what should be changed:

[vi-admin@vma1:/etc/pam.d[vc1.class.local](mailto:vi-admin@vma1:/etc/pam.d%5Bvc1.class.local)]\> cat login  
#%PAM-1.0  
auth requisite pam\_nologin.so  
auth [user\_unknown=ignore success=ok ignore=ignore auth\_err=die default=bad] pam\_securetty.so  
auth include common-auth  
account include common-account  
password include common-password  
session required pam\_loginuid.so  
session include common-session  
session optional pam\_mail.so standard  
session optional pam\_ck\_connector.so

[vi-admin@vma1:/etc/pam.d[vc1.class.local](mailto:vi-admin@vma1:/etc/pam.d%5Bvc1.class.local)]\> cat sshd  
#%PAM-1.0  
auth requisite pam\_nologin.so  
auth include common-auth  
account requisite pam\_nologin.so  
account include common-account  
password include common-password  
session required pam\_loginuid.so  
session include common-session

---

<div class="post-metadata">

**Author:** ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)\
**Post date:** [September 1, 2015, 11:51am UTC](https://forums.suse.com/t/vma-6-0-active-directory-user-login/27391/4 "2015-09-01T11:51:00Z")

</div>

Hi tomeksmi,

> Please look at the files below

I didn’t spot anything obvious, did you?

BTW, the warning reported in your initial message (“pam\_unix2(sshd:auth): Unknown option: `try\_first\_pass’”) might be worth looking after, despite it not having any influence on the original problem.

Regards,  
Jens

---

<div class="post-metadata">

**Author:** ![tomeksmi](https://avatars.discourse-cdn.com/v4/letter/t/bc79bd/32.png) [@tomeksmi](https://forums.suse.com/u/tomeksmi)\
**Post date:** [September 1, 2015, 12:30pm UTC](https://forums.suse.com/t/vma-6-0-active-directory-user-login/27391/5 "2015-09-01T12:30:04Z")

</div>

I also didn’t spot anything obvious and have no clue where to look further.

---

<div class="post-metadata">

**Author:** ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)\
**Post date:** [September 1, 2015, 12:52pm UTC](https://forums.suse.com/t/vma-6-0-active-directory-user-login/27391/6 "2015-09-01T12:52:20Z")

</div>

Hi tomeksmi,

> [@tomeksmi;29417](#):
>
> I also didn’t spot anything obvious and have no clue where to look further.

> I’ve successfully joined vMA aplliance […] to AD domain.

how did you do this, what was changed as a result of your actions? There are different approaches to AD user integration, which one did you follow?

Once you know how it _should_ work, you can focus on spotting the differences when login in via console vs. login in via sshd.

It could be a question of presenting the correct user id (by sshd, to the underlying auth layers), it could be that searching is only performed when logging in locally (though at least at the PAM layer, there seem to be no such differences). It could be sshd restricting logins to a specific set of users.

Try turning on debugging for the PAM auth modules and compare the logins via console vs. via sshd, this seems a good starting point.

Regards,  
Jens

---

<div class="post-metadata">

**Author:** ![tomeksmi](https://avatars.discourse-cdn.com/v4/letter/t/bc79bd/32.png) [@tomeksmi](https://forums.suse.com/u/tomeksmi)\
**Post date:** [November 23, 2015, 11:22am UTC](https://forums.suse.com/t/vma-6-0-active-directory-user-login/27391/7 "2015-11-23T11:22:49Z")

</div>

[QUOTE=jmozdzen;29418]Hi tomeksmi,

> I’ve successfully joined vMA aplliance […] to AD domain.

how did you do this, what was changed as a result of your actions? There are different approaches to AD user integration, which one did you follow?

Once you know how it _should_ work, you can focus on spotting the differences when login in via console vs. login in via sshd.

It could be a question of presenting the correct user id (by sshd, to the underlying auth layers), it could be that searching is only performed when logging in locally (though at least at the PAM layer, there seem to be no such differences). It could be sshd restricting logins to a specific set of users.

Try turning on debugging for the PAM auth modules and compare the logins via console vs. via sshd, this seems a good starting point.

Regards,  
Jens[/QUOTE]

Thanks for clues, I 'll trouble shoot it later on if I have time.  
For now on one of my colleagues successfully integrated vMA with AD and enabled ssh login for AD users (out ot the box).  
It must be me that made a mistake in vMA initial setup.

–  
Best regards,  
Tom

---

<div class="post-metadata">

**Author:** ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)\
**Post date:** [November 23, 2015, 12:04pm UTC](https://forums.suse.com/t/vma-6-0-active-directory-user-login/27391/8 "2015-11-23T12:04:12Z")

</div>

Hi Tom,

> For now on one of my colleagues successfully integrated vMA

thank you for giving feedback - if you find the time to debug your steps, you’ll have a baseline to compare to. This can be a real advantage 🙂

Best regards,  
Jens

---

<div class="post-metadata">

**Author:** ![tomeksmi](https://avatars.discourse-cdn.com/v4/letter/t/bc79bd/32.png) [@tomeksmi](https://forums.suse.com/u/tomeksmi)\
**Post date:** [November 23, 2015, 12:15pm UTC](https://forums.suse.com/t/vma-6-0-active-directory-user-login/27391/9 "2015-11-23T12:15:15Z")

</div>

Thanks again for help!
