Hi Fabrice,
it is short (pc31-longcomput$). Shouldn't the machine authentication
work only against servicePrincipalName fields (HOST/shortname$ and
HOST/theverylongname...) and not to care about the Object name, or
sAMAccountName?
Best regards,
Plamen
On 08/15/2018 04:21 AM, Durand fabrice via PacketFence-users wrote:
Hello Plamen,
what is the value of the sAMAccountName attribute for this machine, is
it the same as pc31-longcomputername$ ?
Regards
Fabrice
Le 2018-08-14 à 08:38, Plamen Tonev via PacketFence-users a écrit :
Hello,
I have Debian PF 8.1 new install: I have a problem when PacketFence
is trying to authenticate a computer account against our Active
Directory and the computer name is longer than 15 characters.
If i shorten the computername to match the NetBIOS Name it works.
(I have the same issue as this user had
here:https://sourceforge.net/p/packetfence/mailman/message/34215126/
<https://github.com/inverse-inc/packetfence/issues/url>)
Here is RADIUS debug:
|(2871) Tue Aug 14 11:07:03 2018: Debug: chrooted_mschap_machine:
Creating challenge hash with username:
host/pc31-longcomputername.sub.domain.com (2871) Tue Aug 14 11:07:03
2018: Debug: chrooted_mschap_machine: Client is using MS-CHAPv2
(2871) Tue Aug 14 11:07:03 2018: Debug: chrooted_mschap_machine:
Executing: /usr/bin/sudo /usr/sbin/chroot
/chroots/%{PacketFence-Domain} /usr/local/pf/bin/ntlm_auth_wrapper --
--request-nt-key --username=%{mschap:User-Name:-N one}
--challenge=%{mschap:Challenge:-00}
--nt-response=%{mschap:NT-Response:-00}: (2871) Tue Aug 14 11:07:03
2018: Debug: chrooted_mschap_machine: EXPAND
/chroots/%{PacketFence-Domain} (2871) Tue Aug 14 11:07:03 2018:
Debug: chrooted_mschap_machine: --> /chroots/MYDOMAINAD (2871) Tue
Aug 14 11:07:03 2018: Debug: chrooted_mschap_machine: EXPAND
--username=%{mschap:User-Name:-None} (2871) Tue Aug 14 11:07:03 2018:
Debug: chrooted_mschap_machine: --> --username=pc31-longcomputername$
(2871) Tue Aug 14 11:07:03 2018: Debug: chrooted_mschap_machine:
Creating challenge hash with username:
host/pc31-longcomputername.sub.domain.com (2871) Tue Aug 14 11:07:03
2018: Debug: chrooted_mschap_machine: EXPAND
--challenge=%{mschap:Challenge:-00} (2871) Tue Aug 14 11:07:03 2018:
Debug: chrooted_mschap_machine: --> --challenge=18a55cb51f69c512
(2871) Tue Aug 14 11:07:03 2018: Debug: chrooted_mschap_machine:
EXPAND --nt-response=%{mschap:NT-Response:-00} (2871) Tue Aug 14
11:07:03 2018: Debug: chrooted_mschap_machine: -->
--nt-response=4b655ecc17585973bf3f71d399713453a31033b1db03932d (2871)
Tue Aug 14 11:07:03 2018: ERROR: chrooted_mschap_machine: Program
returned code (1) and output 'Logon failure (0xc000006d)' (2871) Tue
Aug 14 11:07:03 2018: Debug: chrooted_mschap_machine: External script
failed (2871) Tue Aug 14 11:07:03 2018: ERROR:
chrooted_mschap_machine: External script says: Logon failure
(0xc000006d) (2871) Tue Aug 14 11:07:03 2018: ERROR:
chrooted_mschap_machine: MS-CHAP2-Response is incorrect |
This is happening only to computers with computer name longer than 15
characters.
For machine authentication I'm using the following in
authentication.conf:
|[MYDOMAIN] cache_match=0 monitor=0 [email protected]
description=MYDOMAIN AD Machine Authentication Source shuffle=0
set_access_level_action= usernameattribute=servicePrincipalName
encryption=ssl scope=one basedn=CN=Computers,DC=sub,DC=domain,DC=com
realms=default,null email_attribute=mail type=AD connection_timeout=5
password=*********** host=mydc.sub.domain.com port=636
read_timeout=10 write_timeout=5 |
In servicePrincipalName for this computer object in the domain there
is entry named:
HOST/pc31-longcomputername.sub.domain.com
If I rename this computer to match it's NetBIOS name with 15
characters limit (pc31-longcomput.sub.domain.com) machine
authentication works fine.
|Any ideas ?|
Best Regards,
Plamen
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org!http://sdm.link/slashdot
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users