Authenticating against Active Directory using winbind

Christoffer Jönsson chrjsn at imap.cc
Fri Sep 14 13:43:53 CEST 2018


Thanks for the response! But it' still not working.
I'm attaching all of the outputs.
I also tried using debian 8, 9 and centos 7 as the AD/DC with same errors.

Thanks!
>
>> On 11 Sep 2018, at 16:57, Christoffer Jönsson <chrjsn at imap.cc> wrote:
>>
>> When I first tried to use freeradius on centos it did not work, but the compile it-yourself-tutorial did :).
>>
>> Also, trying to enable pure winbind from repos results in error: "/etc/raddb/mods-enabled/mschap[10]: 'winbind' auth not enabled at compiled time"
>>
>> Anyway, I just installed samba + fr from the repos, joined the AD and ran setfacl -m u:radiusd:rx /var/lib/samba/winbindd_privileged.
>>
>> Tried both of these:
>> ntlm_auth = "/usr/bin/ntlm_auth --request-nt-key --username=%{%{Stripped-User-Name}:-%{%{User-Name}:-None}} --domain=auth.chrjsn.se --challenge=%{%{mschap:Challenge}:-00} --nt-response=%{%{mschap:NT-Response}:-00}"
>> ntlm_auth = "/usr/bin/ntlm_auth --allow-mschapv2 --request-nt-key --username=%{%{Stripped-User-Name}:-%{%{User-Name}:-None}} --domain=auth.chrjsn.se --challenge=%{%{mschap:Challenge}:-00} --nt-response=%{%{mschap:NT-Response}:-00}"
>>
>> But they both fail with error:
>> (0) mschap: ERROR: Program returned code (1) and output 'The attempted logon is invalid. This is either due to a bad username or authentication information. (0xc000006d)'
>> (0) mschap: External script failed
>> (0) mschap: ERROR: External script says: The attempted logon is invalid. This is either due to a bad username or authentication information. (0xc000006d)
>> (0) mschap: ERROR: MS-CHAP2-Response is incorrect
>>
>> when this works ntlm_auth --username=adtest --domain=auth.chrjsn.se
>> Password:
>> NT_STATUS_OK: The operation completed successfully. (0x0)
>>
> Does it work also
> ntlm_auth --request-nt-key --domain=auth.chrjsn.se --username=adtest
>
>
> In mods-enabled/mschap
>
> ntlm_auth = "/usr/bin/ntlm_auth --request-nt-key --username=%{%{Stripped-User-Name}:-%{%{User-Name}:-None}} --challenge=%{%{mschap:Challenge}:-00} --nt-response=%{%{mschap:NT-Response}:-00}"
>
> use_mppe = yes
> require_encryption = yes
> require_strong = yes
> authtype = MS-CHAP
> with_ntdomain_hack = yes
>
> I think you've also test
>
> kinit adtest
>
> and do
>
> net ads join -U administrator
>
> and nmb winbind and smb are all running
>
> and dns resolve  auth.chrjsn.se
>
>
> Regards,
> Paolo.
>
>
>
>> So now I'm really confused.
>>> Curious to know why you aren't using samba coming with centos...anyway I've just installed for a new deployment a centos 7.5 + samba 4.7 + freeradius 3.0.13 + winbind against AD: it works !
>>>
>>> The suggested command to set in the proper way the privileges of winbindd_privileged directory is setfacl
>>>
>>> setfacl -m u:radiusd:rx /var/lib/samba/winbindd_privileged
>>>
>>>
>>> ...radiusd need also x.
>>>
>>> Regards,
>>> Paolo.
>>>
>>>
>>>> On 11 Sep 2018, at 15:54, Christoffer Jönsson <chrjsn at imap.cc> wrote:
>>>>
>>>> So I created the radiusd user since there was none created on install and changed the disabled variables to "user = radius group = radius" in radiusd.conf.
>>>>
>>>> If I did not run "chgrp radiusd /opt/samba4.2/var/locks/winbindd_privileged" freeradius could not connect to winbind.
>>>>
>>>> But when I did chgrp, I still get the same error.  There was also no winbind group/user created by default and I don't know which config to set the group/user.
>>>>
>>>> I am running CentOS 7.
>>>>
>>>> Thanks!
>>>>
>>>>
>>>>> hi,
>>>>>
>>>>> check the permissions of the winbindd_privileged directory - might have
>>>>> been changed when samba patched.  (ideally you add radiusd to the winbind
>>>>> group)
>>>>>
>>>>> alan
>>>>>
>>>>> On Tue, 11 Sep 2018 at 12:42, Christoffer Jönsson <chrjsn at imap.cc> wrote:
>>>>>
>>>>>> Hello! I used this guide a year ago to enable 802.1x on my switches and
>>>>>> APs and it worked without any problems to authenticate to my Samba4 AD/DC:
>>>>>>
>>>>>> https://wiki.freeradius.org/guide/Active-Directory-direct-via-winbind.
>>>>>>
>>>>>> Today I am having trouble getting it to work because it wont accept the
>>>>>> password when running this command or connecting from switches:
>>>>>>
>>>>>> "radtest -t mschap adtest Password1 127.0.0.1 0 testing123". And winbind
>>>>>> returns this result:
>>>>>>
>>>>>> "NTLM CRAP authentication for user [auth.chrjsn.se]\[adtest] returned
>>>>>> NT_STATUS_WRONG_PASSWORD".
>>>>>>
>>>>>> But running this command, it authenticates with this result:
>>>>>>
>>>>>> ntlm_auth --username=adtest --domain=auth.chrjsn.se
>>>>>> Password:
>>>>>> NT_STATUS_OK: Success (0x0):
>>>>>>
>>>>>> "Plain-text authentication for user AUTH.CHRJSN.SE\adtest returned
>>>>>> NT_STATUS_OK (PAM: 0)"
>>>>>>
>>>>>> Radiusd reports that password has expired, when it has not. I have reset
>>>>>> the password for adtest and administrator with same results.
>>>>>>
>>>>>> I don't know if there's any new settings or something and I'm really
>>>>>> stuck here.
>>>>>>
>>>>>> It also doesn't matter which version of samba/freeradius I'm using.
>>>>>>
>>>>>> Thanks!
>>>>>>
>>>>>> -
>>>>>> List info/subscribe/unsubscribe? See
>>>>>> http://www.freeradius.org/list/users.html
>>>>> -
>>>>> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>>>> -
>>>> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>>> ------------------------------------------------------------------------------------------------
>>> Paolo Barbato
>>>
>>> Consorzio RFX
>>> corso Stati Uniti,4
>>> 35127 Padova - Italy                     	
>>> Network Administrator
>>> phone: +39 049 8295097 fax: +39 049 8700718
>>> ------------------------------------------------------------------------------------------------
>>>
>>>
>>> -
>>> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>> <debugfile.txt>-
>> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
> ------------------------------------------------------------------------------------------------
> Paolo Barbato
>
> Consorzio RFX
>   <https://www.igi.cnr.it/>corso Stati Uniti,4
> 35127 Padova - Italy                     	
> Network Administrator
> phone: +39 049 8295097 fax: +39 049 8700718
> ------------------------------------------------------------------------------------------------
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

-------------- next part --------------
# -*- text -*-
#
#  $Id: 18f600589b67177679b9521feb65b7fbb0200ac2 $

# Microsoft CHAP authentication
#
#  This module supports MS-CHAP and MS-CHAPv2 authentication.
#  It also enforces the SMB-Account-Ctrl attribute.
#
mschap {
	#
	#  If you are using /etc/smbpasswd, see the 'passwd'
	#  module for an example of how to use /etc/smbpasswd

	# if use_mppe is not set to no mschap will
	# add MS-CHAP-MPPE-Keys for MS-CHAPv1 and
	# MS-MPPE-Recv-Key/MS-MPPE-Send-Key for MS-CHAPv2
	#
	use_mppe = yes

	# if mppe is enabled require_encryption makes
	# encryption moderate
	#
	require_encryption = yes

	# require_strong always requires 128 bit key
	# encryption
	#
	require_strong = yes
	authtype = MS-CHAP
	with_ntdomain_hack = yes

	# The module can perform authentication itself, OR
	# use a Windows Domain Controller.  This configuration
	# directive tells the module to call the ntlm_auth
	# program, which will do the authentication, and return
	# the NT-Key.  Note that you MUST have "winbindd" and
	# "nmbd" running on the local machine for ntlm_auth
	# to work.  See the ntlm_auth program documentation
	# for details.
	#
	# If ntlm_auth is configured below, then the mschap
	# module will call ntlm_auth for every MS-CHAP
	# authentication request.  If there is a cleartext
	# or NT hashed password available, you can set
	# "MS-CHAP-Use-NTLM-Auth := No" in the control items,
	# and the mschap module will do the authentication itself,
	# without calling ntlm_auth.
	#
	# Be VERY careful when editing the following line!
	#
	# You can also try setting the user name as:
	#
	#	... --username=%{mschap:User-Name} ...
	#
	# In that case, the mschap module will look at the User-Name
	# attribute, and do prefix/suffix checks in order to obtain
	# the "best" user name for the request.
	#
#	ntlm_auth = "/path/to/ntlm_auth --request-nt-key --username=%{%{Stripped-User-Name}:-%{%{User-Name}:-None}} --challenge=%{%{mschap:Challenge}:-00} --nt-response=%{%{mschap:NT-Response}:-00}"
ntlm_auth = "/usr/bin/ntlm_auth --request-nt-key --username=%{%{Stripped-User-Name}:-%{%{User-Name}:-None}} --challenge=%{%{mschap:Challenge}:-00} --nt-response=%{%{mschap:NT-Response}:-00}"
	# The default is to wait 10 seconds for ntlm_auth to
	# complete.  This is a long time, and if it's taking that
	# long then you likely have other problems in your domain.
	# The length of time can be decreased with the following
	# option, which can save clients waiting if your ntlm_auth
	# usually finishes quicker. Range 1 to 10 seconds.
	#
#	ntlm_auth_timeout = 10

	# An alternative to using ntlm_auth is to connect to the
	# winbind daemon directly for authentication. This option
	# is likely to be faster and may be useful on busy systems,
	# but is less well tested.
	#
	# Using this option requires libwbclient from Samba 4.2.1
	# or later to be installed. Make sure that ntlm_auth above is
	# commented out.
	#
#	winbind_username = "%{mschap:User-Name}"
#	winbind_domain = "%{mschap:NT-Domain}"

	# When using single sign-on with a winbind connection and the
	# client uses a different casing for the username than the
	# casing is according to the backend, reauth may fail because
	# of some Windows internals. This switch tries to find the
	# user in the correct casing in the backend, and retry
	# authentication with that username.
	#
#	winbind_retry_with_normalised_username = no

	#
	#  Information for the winbind connection pool.  The configuration
	#  items below are the same for all modules which use the new
	#  connection pool.
	#
	pool {
		#  Connections to create during module instantiation.
		#  If the server cannot create specified number of
		#  connections during instantiation it will exit.
		#  Set to 0 to allow the server to start without the
		#  winbind daemon being available.
		start = ${thread[pool].start_servers}

		#  Minimum number of connections to keep open
		min = ${thread[pool].min_spare_servers}

		#  Maximum number of connections
		#
		#  If these connections are all in use and a new one
		#  is requested, the request will NOT get a connection.
		#
		#  Setting 'max' to LESS than the number of threads means
		#  that some threads may starve, and you will see errors
		#  like 'No connections available and at max connection limit'
		#
		#  Setting 'max' to MORE than the number of threads means
		#  that there are more connections than necessary.
		max = ${thread[pool].max_servers}

		#  Spare connections to be left idle
		#
		#  NOTE: Idle connections WILL be closed if "idle_timeout"
		#  is set.  This should be less than or equal to "max" above.
		spare = ${thread[pool].max_spare_servers}

		#  Number of uses before the connection is closed
		#
		#  0 means "infinite"
		uses = 0

		#  The number of seconds to wait after the server tries
		#  to open a connection, and fails.  During this time,
		#  no new connections will be opened.
		retry_delay = 30

		#  The lifetime (in seconds) of the connection
		#
		#  NOTE: A setting of 0 means infinite (no limit).
		lifetime = 86400

		#  The pool is checked for free connections every
		#  "cleanup_interval".  If there are free connections,
		#  then one of them is closed.
		cleanup_interval = 300

		#  The idle timeout (in seconds).  A connection which is
		#  unused for this length of time will be closed.
		#
		#  NOTE: A setting of 0 means infinite (no timeout).
		idle_timeout = 600

		#  NOTE: All configuration settings are enforced.  If a
		#  connection is closed because of "idle_timeout",
		#  "uses", or "lifetime", then the total number of
		#  connections MAY fall below "min".  When that
		#  happens, it will open a new connection.  It will
		#  also log a WARNING message.
		#
		#  The solution is to either lower the "min" connections,
		#  or increase lifetime/idle_timeout.
	}

	passchange {
		# This support MS-CHAPv2 (not v1) password change
		# requests.  See doc/mschap.rst for more IMPORTANT
		# information.
		#
		# Samba/ntlm_auth - if you are using ntlm_auth to
		# validate passwords, you will need to use ntlm_auth
		# to change passwords.  Uncomment the three lines
		# below, and change the path to ntlm_auth.
		#
#		ntlm_auth = "/usr/bin/ntlm_auth --helper-protocol=ntlm-change-password-1"
#		ntlm_auth_username = "username: %{mschap:User-Name}"
#		ntlm_auth_domain = "nt-domain: %{mschap:NT-Domain}"

		# To implement a local password change, you need to
		# supply a string which is then expanded, so that the
		# password can be placed somewhere.  e.g. passed to a
		# script (exec), or written to SQL (UPDATE/INSERT).
		# We give both examples here, but only one will be
		# used.
		#
#		local_cpw = "%{exec:/path/to/script %{mschap:User-Name} %{MS-CHAP-New-Cleartext-Password}}"
		#
#		local_cpw = "%{sql:UPDATE radcheck set value='%{MS-CHAP-New-NT-Password}' where username='%{SQL-User-Name}' and attribute='NT-Password'}"
	}

	# For Apple Server, when running on the same machine as
	# Open Directory.  It has no effect on other systems.
	#
#	use_open_directory = yes

	# On failure, set (or not) the MS-CHAP error code saying
	# "retries allowed".
#	allow_retry = yes

	# An optional retry message.
#	retry_msg = "Re-enter (or reset) the password"
}
-------------- next part --------------
FreeRADIUS Version 3.0.13
Copyright (C) 1999-2017 The FreeRADIUS server project and contributors
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE
You may redistribute copies of FreeRADIUS under the terms of the
GNU General Public License
For more information about these matters, see the file named COPYRIGHT
Starting - reading configuration files ...
including dictionary file /usr/share/freeradius/dictionary
including dictionary file /usr/share/freeradius/dictionary.dhcp
including dictionary file /usr/share/freeradius/dictionary.vqp
including dictionary file /etc/raddb/dictionary
including configuration file /etc/raddb/radiusd.conf
including configuration file /etc/raddb/proxy.conf
including configuration file /etc/raddb/clients.conf
including files in directory /etc/raddb/mods-enabled/
including configuration file /etc/raddb/mods-enabled/always
including configuration file /etc/raddb/mods-enabled/attr_filter
including configuration file /etc/raddb/mods-enabled/cache_eap
including configuration file /etc/raddb/mods-enabled/chap
including configuration file /etc/raddb/mods-enabled/date
including configuration file /etc/raddb/mods-enabled/detail
including configuration file /etc/raddb/mods-enabled/detail.log
including configuration file /etc/raddb/mods-enabled/dhcp
including configuration file /etc/raddb/mods-enabled/digest
including configuration file /etc/raddb/mods-enabled/dynamic_clients
including configuration file /etc/raddb/mods-enabled/eap
including configuration file /etc/raddb/mods-enabled/echo
including configuration file /etc/raddb/mods-enabled/exec
including configuration file /etc/raddb/mods-enabled/expiration
including configuration file /etc/raddb/mods-enabled/expr
including configuration file /etc/raddb/mods-enabled/files
including configuration file /etc/raddb/mods-enabled/linelog
including configuration file /etc/raddb/mods-enabled/logintime
including configuration file /etc/raddb/mods-enabled/mschap
including configuration file /etc/raddb/mods-enabled/ntlm_auth
including configuration file /etc/raddb/mods-enabled/pap
including configuration file /etc/raddb/mods-enabled/passwd
including configuration file /etc/raddb/mods-enabled/preprocess
including configuration file /etc/raddb/mods-enabled/radutmp
including configuration file /etc/raddb/mods-enabled/realm
including configuration file /etc/raddb/mods-enabled/replicate
including configuration file /etc/raddb/mods-enabled/soh
including configuration file /etc/raddb/mods-enabled/sradutmp
including configuration file /etc/raddb/mods-enabled/unix
including configuration file /etc/raddb/mods-enabled/unpack
including configuration file /etc/raddb/mods-enabled/utf8
including files in directory /etc/raddb/policy.d/
including configuration file /etc/raddb/policy.d/accounting
including configuration file /etc/raddb/policy.d/canonicalization
including configuration file /etc/raddb/policy.d/control
including configuration file /etc/raddb/policy.d/cui
including configuration file /etc/raddb/policy.d/debug
including configuration file /etc/raddb/policy.d/dhcp
including configuration file /etc/raddb/policy.d/eap
including configuration file /etc/raddb/policy.d/filter
including configuration file /etc/raddb/policy.d/operator-name
including files in directory /etc/raddb/sites-enabled/
including configuration file /etc/raddb/sites-enabled/default
including configuration file /etc/raddb/sites-enabled/inner-tunnel
main {
 security {
 	user = "radiusd"
 	group = "radiusd"
 	allow_core_dumps = no
 }
	name = "radiusd"
	prefix = "/usr"
	localstatedir = "/var"
	logdir = "/var/log/radius"
	run_dir = "/var/run/radiusd"
}
main {
	name = "radiusd"
	prefix = "/usr"
	localstatedir = "/var"
	sbindir = "/usr/sbin"
	logdir = "/var/log/radius"
	run_dir = "/var/run/radiusd"
	libdir = "/usr/lib64/freeradius"
	radacctdir = "/var/log/radius/radacct"
	hostname_lookups = no
	max_request_time = 30
	cleanup_delay = 5
	max_requests = 16384
	pidfile = "/var/run/radiusd/radiusd.pid"
	checkrad = "/usr/sbin/checkrad"
	debug_level = 0
	proxy_requests = yes
 log {
 	stripped_names = no
 	auth = no
 	auth_badpass = no
 	auth_goodpass = no
 	colourise = yes
 	msg_denied = "You are already logged in - access denied"
 }
 resources {
 }
 security {
 	max_attributes = 200
 	reject_delay = 1.000000
 	status_server = yes
 }
}
radiusd: #### Loading Realms and Home Servers ####
 proxy server {
 	retry_delay = 5
 	retry_count = 3
 	default_fallback = no
 	dead_time = 120
 	wake_all_if_all_dead = no
 }
 home_server localhost {
 	ipaddr = 127.0.0.1
 	port = 1812
 	type = "auth"
 	secret = <<< secret >>>
 	response_window = 20.000000
 	response_timeouts = 1
 	max_outstanding = 65536
 	zombie_period = 40
 	status_check = "status-server"
 	ping_interval = 30
 	check_interval = 30
 	check_timeout = 4
 	num_answers_to_alive = 3
 	revive_interval = 120
  limit {
  	max_connections = 16
  	max_requests = 0
  	lifetime = 0
  	idle_timeout = 0
  }
  coa {
  	irt = 2
  	mrt = 16
  	mrc = 5
  	mrd = 30
  }
 }
 home_server_pool my_auth_failover {
	type = fail-over
	home_server = localhost
 }
 realm example.com {
	auth_pool = my_auth_failover
 }
 realm LOCAL {
 }
radiusd: #### Loading Clients ####
 client localhost {
 	ipaddr = 127.0.0.1
 	require_message_authenticator = no
 	secret = <<< secret >>>
 	nas_type = "other"
 	proto = "*"
  limit {
  	max_connections = 16
  	lifetime = 0
  	idle_timeout = 30
  }
 }
 client localhost_ipv6 {
 	ipv6addr = ::1
 	require_message_authenticator = no
 	secret = <<< secret >>>
  limit {
  	max_connections = 16
  	lifetime = 0
  	idle_timeout = 30
  }
 }
Debugger not attached
 # Creating Auth-Type = mschap
 # Creating Auth-Type = digest
 # Creating Auth-Type = eap
 # Creating Auth-Type = PAP
 # Creating Auth-Type = CHAP
 # Creating Auth-Type = MS-CHAP
radiusd: #### Instantiating modules ####
 modules {
  # Loaded module rlm_always
  # Loading module "reject" from file /etc/raddb/mods-enabled/always
  always reject {
  	rcode = "reject"
  	simulcount = 0
  	mpp = no
  }
  # Loading module "fail" from file /etc/raddb/mods-enabled/always
  always fail {
  	rcode = "fail"
  	simulcount = 0
  	mpp = no
  }
  # Loading module "ok" from file /etc/raddb/mods-enabled/always
  always ok {
  	rcode = "ok"
  	simulcount = 0
  	mpp = no
  }
  # Loading module "handled" from file /etc/raddb/mods-enabled/always
  always handled {
  	rcode = "handled"
  	simulcount = 0
  	mpp = no
  }
  # Loading module "invalid" from file /etc/raddb/mods-enabled/always
  always invalid {
  	rcode = "invalid"
  	simulcount = 0
  	mpp = no
  }
  # Loading module "userlock" from file /etc/raddb/mods-enabled/always
  always userlock {
  	rcode = "userlock"
  	simulcount = 0
  	mpp = no
  }
  # Loading module "notfound" from file /etc/raddb/mods-enabled/always
  always notfound {
  	rcode = "notfound"
  	simulcount = 0
  	mpp = no
  }
  # Loading module "noop" from file /etc/raddb/mods-enabled/always
  always noop {
  	rcode = "noop"
  	simulcount = 0
  	mpp = no
  }
  # Loading module "updated" from file /etc/raddb/mods-enabled/always
  always updated {
  	rcode = "updated"
  	simulcount = 0
  	mpp = no
  }
  # Loaded module rlm_attr_filter
  # Loading module "attr_filter.post-proxy" from file /etc/raddb/mods-enabled/attr_filter
  attr_filter attr_filter.post-proxy {
  	filename = "/etc/raddb/mods-config/attr_filter/post-proxy"
  	key = "%{Realm}"
  	relaxed = no
  }
  # Loading module "attr_filter.pre-proxy" from file /etc/raddb/mods-enabled/attr_filter
  attr_filter attr_filter.pre-proxy {
  	filename = "/etc/raddb/mods-config/attr_filter/pre-proxy"
  	key = "%{Realm}"
  	relaxed = no
  }
  # Loading module "attr_filter.access_reject" from file /etc/raddb/mods-enabled/attr_filter
  attr_filter attr_filter.access_reject {
  	filename = "/etc/raddb/mods-config/attr_filter/access_reject"
  	key = "%{User-Name}"
  	relaxed = no
  }
  # Loading module "attr_filter.access_challenge" from file /etc/raddb/mods-enabled/attr_filter
  attr_filter attr_filter.access_challenge {
  	filename = "/etc/raddb/mods-config/attr_filter/access_challenge"
  	key = "%{User-Name}"
  	relaxed = no
  }
  # Loading module "attr_filter.accounting_response" from file /etc/raddb/mods-enabled/attr_filter
  attr_filter attr_filter.accounting_response {
  	filename = "/etc/raddb/mods-config/attr_filter/accounting_response"
  	key = "%{User-Name}"
  	relaxed = no
  }
  # Loaded module rlm_cache
  # Loading module "cache_eap" from file /etc/raddb/mods-enabled/cache_eap
  cache cache_eap {
  	driver = "rlm_cache_rbtree"
  	key = "%{%{control:State}:-%{%{reply:State}:-%{State}}}"
  	ttl = 15
  	max_entries = 0
  	epoch = 0
  	add_stats = no
  }
  # Loaded module rlm_chap
  # Loading module "chap" from file /etc/raddb/mods-enabled/chap
  # Loaded module rlm_date
  # Loading module "date" from file /etc/raddb/mods-enabled/date
  date {
  	format = "%b %e %Y %H:%M:%S %Z"
  }
  # Loaded module rlm_detail
  # Loading module "detail" from file /etc/raddb/mods-enabled/detail
  detail {
  	filename = "/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d"
  	header = "%t"
  	permissions = 384
  	locking = no
  	escape_filenames = no
  	log_packet_header = no
  }
  # Loading module "auth_log" from file /etc/raddb/mods-enabled/detail.log
  detail auth_log {
  	filename = "/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d"
  	header = "%t"
  	permissions = 384
  	locking = no
  	escape_filenames = no
  	log_packet_header = no
  }
  # Loading module "reply_log" from file /etc/raddb/mods-enabled/detail.log
  detail reply_log {
  	filename = "/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/reply-detail-%Y%m%d"
  	header = "%t"
  	permissions = 384
  	locking = no
  	escape_filenames = no
  	log_packet_header = no
  }
  # Loading module "pre_proxy_log" from file /etc/raddb/mods-enabled/detail.log
  detail pre_proxy_log {
  	filename = "/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/pre-proxy-detail-%Y%m%d"
  	header = "%t"
  	permissions = 384
  	locking = no
  	escape_filenames = no
  	log_packet_header = no
  }
  # Loading module "post_proxy_log" from file /etc/raddb/mods-enabled/detail.log
  detail post_proxy_log {
  	filename = "/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/post-proxy-detail-%Y%m%d"
  	header = "%t"
  	permissions = 384
  	locking = no
  	escape_filenames = no
  	log_packet_header = no
  }
  # Loaded module rlm_dhcp
  # Loading module "dhcp" from file /etc/raddb/mods-enabled/dhcp
  # Loaded module rlm_digest
  # Loading module "digest" from file /etc/raddb/mods-enabled/digest
  # Loaded module rlm_dynamic_clients
  # Loading module "dynamic_clients" from file /etc/raddb/mods-enabled/dynamic_clients
  # Loaded module rlm_eap
  # Loading module "eap" from file /etc/raddb/mods-enabled/eap
  eap {
  	default_eap_type = "md5"
  	timer_expire = 60
  	ignore_unknown_eap_types = no
  	cisco_accounting_username_bug = no
  	max_sessions = 16384
  }
  # Loaded module rlm_exec
  # Loading module "echo" from file /etc/raddb/mods-enabled/echo
  exec echo {
  	wait = yes
  	program = "/bin/echo %{User-Name}"
  	input_pairs = "request"
  	output_pairs = "reply"
  	shell_escape = yes
  }
  # Loading module "exec" from file /etc/raddb/mods-enabled/exec
  exec {
  	wait = no
  	input_pairs = "request"
  	shell_escape = yes
  	timeout = 10
  }
  # Loaded module rlm_expiration
  # Loading module "expiration" from file /etc/raddb/mods-enabled/expiration
  # Loaded module rlm_expr
  # Loading module "expr" from file /etc/raddb/mods-enabled/expr
  expr {
  	safe_characters = "@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /äéöüàâæçèéêëîïôœùûüaÿÄÉÖÜßÀÂÆÇÈÉÊËÎÏÔŒÙÛÜŸ"
  }
  # Loaded module rlm_files
  # Loading module "files" from file /etc/raddb/mods-enabled/files
  files {
  	filename = "/etc/raddb/mods-config/files/authorize"
  	acctusersfile = "/etc/raddb/mods-config/files/accounting"
  	preproxy_usersfile = "/etc/raddb/mods-config/files/pre-proxy"
  }
  # Loaded module rlm_linelog
  # Loading module "linelog" from file /etc/raddb/mods-enabled/linelog
  linelog {
  	filename = "/var/log/radius/linelog"
  	escape_filenames = no
  	syslog_severity = "info"
  	permissions = 384
  	format = "This is a log message for %{User-Name}"
  	reference = "messages.%{%{reply:Packet-Type}:-default}"
  }
  # Loading module "log_accounting" from file /etc/raddb/mods-enabled/linelog
  linelog log_accounting {
  	filename = "/var/log/radius/linelog-accounting"
  	escape_filenames = no
  	syslog_severity = "info"
  	permissions = 384
  	format = ""
  	reference = "Accounting-Request.%{%{Acct-Status-Type}:-unknown}"
  }
  # Loaded module rlm_logintime
  # Loading module "logintime" from file /etc/raddb/mods-enabled/logintime
  logintime {
  	minimum_timeout = 60
  }
  # Loaded module rlm_mschap
  # Loading module "mschap" from file /etc/raddb/mods-enabled/mschap
  mschap {
  	use_mppe = yes
  	require_encryption = yes
  	require_strong = yes
  	with_ntdomain_hack = yes
  	ntlm_auth = "/usr/bin/ntlm_auth --request-nt-key --username=%{%{Stripped-User-Name}:-%{%{User-Name}:-None}} --challenge=%{%{mschap:Challenge}:-00} --nt-response=%{%{mschap:NT-Response}:-00}"
   passchange {
   }
  	allow_retry = yes
  	winbind_retry_with_normalised_username = no
  }
  # Loading module "ntlm_auth" from file /etc/raddb/mods-enabled/ntlm_auth
  exec ntlm_auth {
  	wait = yes
  	program = "/path/to/ntlm_auth --request-nt-key --domain=MYDOMAIN --username=%{mschap:User-Name} --password=%{User-Password}"
  	shell_escape = yes
  }
  # Loaded module rlm_pap
  # Loading module "pap" from file /etc/raddb/mods-enabled/pap
  pap {
  	normalise = yes
  }
  # Loaded module rlm_passwd
  # Loading module "etc_passwd" from file /etc/raddb/mods-enabled/passwd
  passwd etc_passwd {
  	filename = "/etc/passwd"
  	format = "*User-Name:Crypt-Password:"
  	delimiter = ":"
  	ignore_nislike = no
  	ignore_empty = yes
  	allow_multiple_keys = no
  	hash_size = 100
  }
  # Loaded module rlm_preprocess
  # Loading module "preprocess" from file /etc/raddb/mods-enabled/preprocess
  preprocess {
  	huntgroups = "/etc/raddb/mods-config/preprocess/huntgroups"
  	hints = "/etc/raddb/mods-config/preprocess/hints"
  	with_ascend_hack = no
  	ascend_channels_per_line = 23
  	with_ntdomain_hack = no
  	with_specialix_jetstream_hack = no
  	with_cisco_vsa_hack = no
  	with_alvarion_vsa_hack = no
  }
  # Loaded module rlm_radutmp
  # Loading module "radutmp" from file /etc/raddb/mods-enabled/radutmp
  radutmp {
  	filename = "/var/log/radius/radutmp"
  	username = "%{User-Name}"
  	case_sensitive = yes
  	check_with_nas = yes
  	permissions = 384
  	caller_id = yes
  }
  # Loaded module rlm_realm
  # Loading module "IPASS" from file /etc/raddb/mods-enabled/realm
  realm IPASS {
  	format = "prefix"
  	delimiter = "/"
  	ignore_default = no
  	ignore_null = no
  }
  # Loading module "suffix" from file /etc/raddb/mods-enabled/realm
  realm suffix {
  	format = "suffix"
  	delimiter = "@"
  	ignore_default = no
  	ignore_null = no
  }
  # Loading module "realmpercent" from file /etc/raddb/mods-enabled/realm
  realm realmpercent {
  	format = "suffix"
  	delimiter = "%"
  	ignore_default = no
  	ignore_null = no
  }
  # Loading module "ntdomain" from file /etc/raddb/mods-enabled/realm
  realm ntdomain {
  	format = "prefix"
  	delimiter = "\\"
  	ignore_default = no
  	ignore_null = no
  }
  # Loaded module rlm_replicate
  # Loading module "replicate" from file /etc/raddb/mods-enabled/replicate
  # Loaded module rlm_soh
  # Loading module "soh" from file /etc/raddb/mods-enabled/soh
  soh {
  	dhcp = yes
  }
  # Loading module "sradutmp" from file /etc/raddb/mods-enabled/sradutmp
  radutmp sradutmp {
  	filename = "/var/log/radius/sradutmp"
  	username = "%{User-Name}"
  	case_sensitive = yes
  	check_with_nas = yes
  	permissions = 420
  	caller_id = no
  }
  # Loaded module rlm_unix
  # Loading module "unix" from file /etc/raddb/mods-enabled/unix
  unix {
  	radwtmp = "/var/log/radius/radwtmp"
  }
Creating attribute Unix-Group
  # Loaded module rlm_unpack
  # Loading module "unpack" from file /etc/raddb/mods-enabled/unpack
  # Loaded module rlm_utf8
  # Loading module "utf8" from file /etc/raddb/mods-enabled/utf8
  instantiate {
  }
  # Instantiating module "reject" from file /etc/raddb/mods-enabled/always
  # Instantiating module "fail" from file /etc/raddb/mods-enabled/always
  # Instantiating module "ok" from file /etc/raddb/mods-enabled/always
  # Instantiating module "handled" from file /etc/raddb/mods-enabled/always
  # Instantiating module "invalid" from file /etc/raddb/mods-enabled/always
  # Instantiating module "userlock" from file /etc/raddb/mods-enabled/always
  # Instantiating module "notfound" from file /etc/raddb/mods-enabled/always
  # Instantiating module "noop" from file /etc/raddb/mods-enabled/always
  # Instantiating module "updated" from file /etc/raddb/mods-enabled/always
  # Instantiating module "attr_filter.post-proxy" from file /etc/raddb/mods-enabled/attr_filter
reading pairlist file /etc/raddb/mods-config/attr_filter/post-proxy
  # Instantiating module "attr_filter.pre-proxy" from file /etc/raddb/mods-enabled/attr_filter
reading pairlist file /etc/raddb/mods-config/attr_filter/pre-proxy
  # Instantiating module "attr_filter.access_reject" from file /etc/raddb/mods-enabled/attr_filter
reading pairlist file /etc/raddb/mods-config/attr_filter/access_reject
[/etc/raddb/mods-config/attr_filter/access_reject]:11 Check item "FreeRADIUS-Response-Delay" 	found in filter list for realm "DEFAULT". 
[/etc/raddb/mods-config/attr_filter/access_reject]:11 Check item "FreeRADIUS-Response-Delay-USec" 	found in filter list for realm "DEFAULT". 
  # Instantiating module "attr_filter.access_challenge" from file /etc/raddb/mods-enabled/attr_filter
reading pairlist file /etc/raddb/mods-config/attr_filter/access_challenge
  # Instantiating module "attr_filter.accounting_response" from file /etc/raddb/mods-enabled/attr_filter
reading pairlist file /etc/raddb/mods-config/attr_filter/accounting_response
  # Instantiating module "cache_eap" from file /etc/raddb/mods-enabled/cache_eap
rlm_cache (cache_eap): Driver rlm_cache_rbtree (module rlm_cache_rbtree) loaded and linked
  # Instantiating module "detail" from file /etc/raddb/mods-enabled/detail
  # Instantiating module "auth_log" from file /etc/raddb/mods-enabled/detail.log
rlm_detail (auth_log): 'User-Password' suppressed, will not appear in detail output
  # Instantiating module "reply_log" from file /etc/raddb/mods-enabled/detail.log
  # Instantiating module "pre_proxy_log" from file /etc/raddb/mods-enabled/detail.log
  # Instantiating module "post_proxy_log" from file /etc/raddb/mods-enabled/detail.log
  # Instantiating module "eap" from file /etc/raddb/mods-enabled/eap
   # Linked to sub-module rlm_eap_md5
   # Linked to sub-module rlm_eap_leap
   # Linked to sub-module rlm_eap_gtc
   gtc {
   	challenge = "Password: "
   	auth_type = "PAP"
   }
   # Linked to sub-module rlm_eap_tls
   tls {
   	tls = "tls-common"
   }
   tls-config tls-common {
   	verify_depth = 0
   	ca_path = "/etc/raddb/certs"
   	pem_file_type = yes
   	private_key_file = "/etc/raddb/certs/server.pem"
   	certificate_file = "/etc/raddb/certs/server.pem"
   	ca_file = "/etc/raddb/certs/ca.pem"
   	private_key_password = <<< secret >>>
   	dh_file = "/etc/raddb/certs/dh"
   	fragment_size = 1024
   	include_length = yes
   	auto_chain = yes
   	check_crl = no
   	check_all_crl = no
   	cipher_list = "DEFAULT"
   	cipher_server_preference = no
   	ecdh_curve = "prime256v1"
    cache {
    	enable = no
    	lifetime = 24
    	max_entries = 255
    }
    verify {
    	skip_if_ocsp_ok = no
    }
    ocsp {
    	enable = no
    	override_cert_url = yes
    	url = "http://127.0.0.1/ocsp/"
    	use_nonce = yes
    	timeout = 0
    	softfail = no
    }
   }
   # Linked to sub-module rlm_eap_ttls
   ttls {
   	tls = "tls-common"
   	default_eap_type = "md5"
   	copy_request_to_tunnel = no
   	use_tunneled_reply = no
   	virtual_server = "inner-tunnel"
   	include_length = yes
   	require_client_cert = no
   }
tls: Using cached TLS configuration from previous invocation
   # Linked to sub-module rlm_eap_peap
   peap {
   	tls = "tls-common"
   	default_eap_type = "mschapv2"
   	copy_request_to_tunnel = no
   	use_tunneled_reply = no
   	proxy_tunneled_request_as_eap = yes
   	virtual_server = "inner-tunnel"
   	soh = no
   	require_client_cert = no
   }
tls: Using cached TLS configuration from previous invocation
   # Linked to sub-module rlm_eap_mschapv2
   mschapv2 {
   	with_ntdomain_hack = no
   	send_error = no
   }
  # Instantiating module "expiration" from file /etc/raddb/mods-enabled/expiration
  # Instantiating module "files" from file /etc/raddb/mods-enabled/files
reading pairlist file /etc/raddb/mods-config/files/authorize
reading pairlist file /etc/raddb/mods-config/files/accounting
reading pairlist file /etc/raddb/mods-config/files/pre-proxy
  # Instantiating module "linelog" from file /etc/raddb/mods-enabled/linelog
  # Instantiating module "log_accounting" from file /etc/raddb/mods-enabled/linelog
  # Instantiating module "logintime" from file /etc/raddb/mods-enabled/logintime
  # Instantiating module "mschap" from file /etc/raddb/mods-enabled/mschap
rlm_mschap (mschap): authenticating by calling 'ntlm_auth'
  # Instantiating module "pap" from file /etc/raddb/mods-enabled/pap
  # Instantiating module "etc_passwd" from file /etc/raddb/mods-enabled/passwd
rlm_passwd: nfields: 3 keyfield 0(User-Name) listable: no
  # Instantiating module "preprocess" from file /etc/raddb/mods-enabled/preprocess
reading pairlist file /etc/raddb/mods-config/preprocess/huntgroups
reading pairlist file /etc/raddb/mods-config/preprocess/hints
  # Instantiating module "IPASS" from file /etc/raddb/mods-enabled/realm
  # Instantiating module "suffix" from file /etc/raddb/mods-enabled/realm
  # Instantiating module "realmpercent" from file /etc/raddb/mods-enabled/realm
  # Instantiating module "ntdomain" from file /etc/raddb/mods-enabled/realm
 } # modules
radiusd: #### Loading Virtual Servers ####
server { # from file /etc/raddb/radiusd.conf
} # server
server default { # from file /etc/raddb/sites-enabled/default
 # Loading authenticate {...}
 # Loading authorize {...}
Ignoring "sql" (see raddb/mods-available/README.rst)
Ignoring "ldap" (see raddb/mods-available/README.rst)
 # Loading preacct {...}
 # Loading accounting {...}
 # Loading post-proxy {...}
 # Loading post-auth {...}
} # server default
server inner-tunnel { # from file /etc/raddb/sites-enabled/inner-tunnel
 # Loading authenticate {...}
 # Loading authorize {...}
 # Loading session {...}
 # Loading post-proxy {...}
 # Loading post-auth {...}
 # Skipping contents of 'if' as it is always 'false' -- /etc/raddb/sites-enabled/inner-tunnel:330
} # server inner-tunnel
radiusd: #### Opening IP addresses and Ports ####
listen {
  	type = "auth"
  	ipaddr = *
  	port = 0
   limit {
   	max_connections = 16
   	lifetime = 0
   	idle_timeout = 30
   }
}
listen {
  	type = "acct"
  	ipaddr = *
  	port = 0
   limit {
   	max_connections = 16
   	lifetime = 0
   	idle_timeout = 30
   }
}
listen {
  	type = "auth"
  	ipv6addr = ::
  	port = 0
   limit {
   	max_connections = 16
   	lifetime = 0
   	idle_timeout = 30
   }
}
listen {
  	type = "acct"
  	ipv6addr = ::
  	port = 0
   limit {
   	max_connections = 16
   	lifetime = 0
   	idle_timeout = 30
   }
}
listen {
  	type = "auth"
  	ipaddr = 127.0.0.1
  	port = 18120
}
Listening on auth address * port 1812 bound to server default
Listening on acct address * port 1813 bound to server default
Listening on auth address :: port 1812 bound to server default
Listening on acct address :: port 1813 bound to server default
Listening on auth address 127.0.0.1 port 18120 bound to server inner-tunnel
Listening on proxy address * port 46780
Listening on proxy address :: port 51896
Ready to process requests
(0) Received Access-Request Id 24 from 127.0.0.1:39907 to 127.0.0.1:1812 length 132
(0)   User-Name = "adtest"
(0)   NAS-IP-Address = 188.226.209.95
(0)   NAS-Port = 0
(0)   Message-Authenticator = 0x99ce400fc91aa07f0849f5b6a06a1546
(0)   MS-CHAP-Challenge = 0xb937e609a314611d
(0)   MS-CHAP-Response = 0x0001000000000000000000000000000000000000000000000000bae432708383c1aabb6e0b577ee63faa90290b701e362bde
(0) # Executing section authorize from file /etc/raddb/sites-enabled/default
(0)   authorize {
(0)     policy filter_username {
(0)       if (&User-Name) {
(0)       if (&User-Name)  -> TRUE
(0)       if (&User-Name)  {
(0)         if (&User-Name =~ / /) {
(0)         if (&User-Name =~ / /)  -> FALSE
(0)         if (&User-Name =~ /@[^@]*@/ ) {
(0)         if (&User-Name =~ /@[^@]*@/ )  -> FALSE
(0)         if (&User-Name =~ /\.\./ ) {
(0)         if (&User-Name =~ /\.\./ )  -> FALSE
(0)         if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/))  {
(0)         if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/))   -> FALSE
(0)         if (&User-Name =~ /\.$/)  {
(0)         if (&User-Name =~ /\.$/)   -> FALSE
(0)         if (&User-Name =~ /@\./)  {
(0)         if (&User-Name =~ /@\./)   -> FALSE
(0)       } # if (&User-Name)  = notfound
(0)     } # policy filter_username = notfound
(0)     [preprocess] = ok
(0)     [chap] = noop
(0) mschap: Found MS-CHAP attributes.  Setting 'Auth-Type  = mschap'
(0)     [mschap] = ok
(0)     [digest] = noop
(0) suffix: Checking for suffix after "@"
(0) suffix: No '@' in User-Name = "adtest", looking up realm NULL
(0) suffix: No such realm "NULL"
(0)     [suffix] = noop
(0) eap: No EAP-Message, not doing EAP
(0)     [eap] = noop
(0)     [files] = noop
(0)     [expiration] = noop
(0)     [logintime] = noop
(0) pap: WARNING: No "known good" password found for the user.  Not setting Auth-Type
(0) pap: WARNING: Authentication will fail unless a "known good" password is available
(0)     [pap] = noop
(0)   } # authorize = ok
(0) Found Auth-Type = mschap
(0) # Executing group from file /etc/raddb/sites-enabled/default
(0)   authenticate {
(0) mschap: Client is using MS-CHAPv1 with NT-Password
(0) mschap: Executing: /usr/bin/ntlm_auth --request-nt-key --username=%{%{Stripped-User-Name}:-%{%{User-Name}:-None}} --challenge=%{%{mschap:Challenge}:-00} --nt-response=%{%{mschap:NT-Response}:-00}:
(0) mschap: EXPAND --username=%{%{Stripped-User-Name}:-%{%{User-Name}:-None}}
(0) mschap:    --> --username=adtest
(0) mschap: mschap1: b9
(0) mschap: EXPAND --challenge=%{%{mschap:Challenge}:-00}
(0) mschap:    --> --challenge=b937e609a314611d
(0) mschap: EXPAND --nt-response=%{%{mschap:NT-Response}:-00}
(0) mschap:    --> --nt-response=bae432708383c1aabb6e0b577ee63faa90290b701e362bde
(0) mschap: ERROR: Program returned code (1) and output 'The attempted logon is invalid. This is either due to a bad username or authentication information. (0xc000006d)'
(0) mschap: External script failed
(0) mschap: ERROR: External script says: The attempted logon is invalid. This is either due to a bad username or authentication information. (0xc000006d)
(0) mschap: ERROR: MS-CHAP2-Response is incorrect
(0)     [mschap] = reject
(0)   } # authenticate = reject
(0) Failed to authenticate the user
(0) Using Post-Auth-Type Reject
(0) # Executing group from file /etc/raddb/sites-enabled/default
(0)   Post-Auth-Type REJECT {
(0) attr_filter.access_reject: EXPAND %{User-Name}
(0) attr_filter.access_reject:    --> adtest
(0) attr_filter.access_reject: Matched entry DEFAULT at line 11
(0)     [attr_filter.access_reject] = updated
(0)     [eap] = noop
(0)     policy remove_reply_message_if_eap {
(0)       if (&reply:EAP-Message && &reply:Reply-Message) {
(0)       if (&reply:EAP-Message && &reply:Reply-Message)  -> FALSE
(0)       else {
(0)         [noop] = noop
(0)       } # else = noop
(0)     } # policy remove_reply_message_if_eap = noop
(0)   } # Post-Auth-Type REJECT = updated
(0) Delaying response for 1.000000 seconds
Waking up in 0.3 seconds.
Waking up in 0.6 seconds.
(0) Sending delayed response
(0) Sent Access-Reject Id 24 from 127.0.0.1:1812 to 127.0.0.1:39907 length 61
(0)   MS-CHAP-Error = "\000E=691 R=1 C=fa49b588085546e6 V=2"
Waking up in 3.9 seconds.
(0) Cleaning up request packet ID 24 with timestamp +12
Ready to process requests
-------------- next part --------------
[root at radius01 ~]# net ads testjoin
Join is OK
[root at radius01 ~]# radtest -t mschap adtest Password1 127.0.0.1 0 testing123
Sent Access-Request Id 24 from 0.0.0.0:39907 to 127.0.0.1:1812 length 132
        User-Name = "adtest"
        MS-CHAP-Password = "Password1"
        NAS-IP-Address = 188.226.209.95
        NAS-Port = 0
        Message-Authenticator = 0x00
        Cleartext-Password = "Password1"
        MS-CHAP-Challenge = 0xb937e609a314611d
        MS-CHAP-Response = 0x000100000000000000000000000000000000000000000000000                                     0bae432708383c1aabb6e0b577ee63faa90290b701e362bde
^[[AReceived Access-Reject Id 24 from 127.0.0.1:1812 to 0.0.0.0:0 length 61
        MS-CHAP-Error = "\000E=691 R=1 C=fa49b588085546e6 V=2"
(0) -: Expected Access-Accept got Access-Reject
[root at radius01 ~]# ntlm_auth --request-nt-key --domain=auth.chrjsn.se --username                                     =adtest
Password:
NT_STATUS_OK: The operation completed successfully. (0x0)
[root at radius01 ~]# ping auth.chrjsn.se
PING auth.chrjsn.se (192.168.1.230) 56(84) bytes of data.
64 bytes from 192.168.1.230 (192.168.1.230): icmp_seq=1 ttl=64 time=0.127 ms
^C
--- auth.chrjsn.se ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.127/0.127/0.127/0.000 ms
[root at radius01 ~]# ping dc01.auth.chrjsn.se
PING dc01.auth.chrjsn.se (192.168.1.230) 56(84) bytes of data.
64 bytes from 192.168.1.230 (192.168.1.230): icmp_seq=1 ttl=64 time=0.101 ms
^C
--- dc01.auth.chrjsn.se ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.101/0.101/0.101/0.000 ms
[root at radius01 ~]#
-------------- next part --------------
INFO: Current debug levels:
  all: 5
  tdb: 5
  printdrivers: 5
  lanman: 5
  smb: 5
  rpc_parse: 5
  rpc_srv: 5
  rpc_cli: 5
  passdb: 5
  sam: 5
  auth: 5
  winbind: 5
  vfs: 5
  idmap: 5
  quota: 5
  acls: 5
  locking: 5
  msdfs: 5
  dmapi: 5
  registry: 5
  scavenger: 5
  dns: 5
  ldb: 5
  tevent: 5
  auth_audit: 5
  auth_json_audit: 5
  kerberos: 5
  drs_repl: 5
winbindd version 4.7.1 started.
Copyright Andrew Tridgell and the Samba Team 1992-2017
lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
INFO: Current debug levels:
  all: 5
  tdb: 5
  printdrivers: 5
  lanman: 5
  smb: 5
  rpc_parse: 5
  rpc_srv: 5
  rpc_cli: 5
  passdb: 5
  sam: 5
  auth: 5
  winbind: 5
  vfs: 5
  idmap: 5
  quota: 5
  acls: 5
  locking: 5
  msdfs: 5
  dmapi: 5
  registry: 5
  scavenger: 5
  dns: 5
  ldb: 5
  tevent: 5
  auth_audit: 5
  auth_json_audit: 5
  kerberos: 5
  drs_repl: 5
Processing section "[global]"
doing parameter netbios name = radius01
doing parameter workgroup = AUTH
doing parameter server string = RADIUS server
doing parameter security = ads
doing parameter invalid users = root
doing parameter socket options = TCP_NODELAY
doing parameter idmap uid = 16777216-33554431
WARNING: The "idmap uid" option is deprecated
doing parameter idmap gid = 16777216-33554431
WARNING: The "idmap gid" option is deprecated
doing parameter winbind use default domain = no
doing parameter winbind max domain connections = 5
doing parameter winbind max clients = 1000
doing parameter password server = *
doing parameter realm = AUTH.CHRJSN.SE
pm_process() returned Yes
Registering messaging pointer for type 2 - private_data=(nil)
Registering messaging pointer for type 9 - private_data=(nil)
Registered MSG_REQ_POOL_USAGE
Registering messaging pointer for type 11 - private_data=(nil)
Registering messaging pointer for type 12 - private_data=(nil)
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
Registering messaging pointer for type 1 - private_data=(nil)
Registering messaging pointer for type 5 - private_data=(nil)
Registering messaging pointer for type 51 - private_data=(nil)
lp_load_ex: refreshing parameters
Freeing parametrics:
Initialising global parameters
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
INFO: Current debug levels:
  all: 5
  tdb: 5
  printdrivers: 5
  lanman: 5
  smb: 5
  rpc_parse: 5
  rpc_srv: 5
  rpc_cli: 5
  passdb: 5
  sam: 5
  auth: 5
  winbind: 5
  vfs: 5
  idmap: 5
  quota: 5
  acls: 5
  locking: 5
  msdfs: 5
  dmapi: 5
  registry: 5
  scavenger: 5
  dns: 5
  ldb: 5
  tevent: 5
  auth_audit: 5
  auth_json_audit: 5
  kerberos: 5
  drs_repl: 5
Processing section "[global]"
doing parameter netbios name = radius01
doing parameter workgroup = AUTH
doing parameter server string = RADIUS server
doing parameter security = ads
doing parameter invalid users = root
doing parameter socket options = TCP_NODELAY
doing parameter idmap uid = 16777216-33554431
WARNING: The "idmap uid" option is deprecated
doing parameter idmap gid = 16777216-33554431
WARNING: The "idmap gid" option is deprecated
doing parameter winbind use default domain = no
doing parameter winbind max domain connections = 5
doing parameter winbind max clients = 1000
doing parameter password server = *
doing parameter realm = AUTH.CHRJSN.SE
pm_process() returned Yes
added interface ens33 ip=192.168.1.231 bcast=192.168.1.255 netmask=255.255.255.0
Netbios name list:-
my_netbios_names[0]="RADIUS01"
added interface ens33 ip=192.168.1.231 bcast=192.168.1.255 netmask=255.255.255.0
TimeInit: Serverzone is -7200
initialize_winbindd_cache: clearing cache and re-creating with version number 2
check lock order 2 for /var/lib/samba/lock/serverid.tdb
release lock order 2 for /var/lib/samba/lock/serverid.tdb
Registering messaging pointer for type 33 - private_data=(nil)
Registering messaging pointer for type 13 - private_data=(nil)
Registering messaging pointer for type 1028 - private_data=(nil)
Registering messaging pointer for type 1027 - private_data=(nil)
Registering messaging pointer for type 1029 - private_data=(nil)
Registering messaging pointer for type 1036 - private_data=(nil)
Registering messaging pointer for type 1035 - private_data=(nil)
Registering messaging pointer for type 1280 - private_data=(nil)
Registering messaging pointer for type 1032 - private_data=(nil)
Registering messaging pointer for type 1033 - private_data=(nil)
Registering messaging pointer for type 1034 - private_data=(nil)
Registering messaging pointer for type 1 - private_data=(nil)
Overriding messaging pointer for type 1 - private_data=(nil)
Added domain BUILTIN (null) S-1-5-32
Attempting to find a passdb backend to match tdbsam (tdbsam)
No builtin backend found, trying to load plugin
load_module_absolute_path: Probing module '/usr/lib64/samba/pdb/tdbsam.so'
load_module_absolute_path: Module '/usr/lib64/samba/pdb/tdbsam.so' loaded
Attempting to register passdb backend tdbsam
Successfully added passdb backend 'tdbsam'
Found pdb backend tdbsam
pdb backend tdbsam has a valid init
Added domain RADIUS01 (null) S-1-5-21-3842715754-1460134973-2872612096
Added domain AUTH AUTH.CHRJSN.SE S-1-5-21-433031528-1573582855-1556836220
Registering messaging pointer for type 2 - private_data=(nil)
Registering messaging pointer for type 9 - private_data=(nil)
Registered MSG_REQ_POOL_USAGE
Registering messaging pointer for type 11 - private_data=(nil)
Registering messaging pointer for type 12 - private_data=(nil)
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
Registering messaging pointer for type 1 - private_data=(nil)
Registering messaging pointer for type 5 - private_data=(nil)
Registering messaging pointer for type 51 - private_data=(nil)
STATUS=daemon 'winbindd' finished starting up and ready to serve connections
Deregistering messaging pointer for type 33 - private_data=(nil)
Deregistering messaging pointer for type 13 - private_data=(nil)
Deregistering messaging pointer for type 1028 - private_data=(nil)
Deregistering messaging pointer for type 1027 - private_data=(nil)
Deregistering messaging pointer for type 1029 - private_data=(nil)
Deregistering messaging pointer for type 1280 - private_data=(nil)
Deregistering messaging pointer for type 1033 - private_data=(nil)
Deregistering messaging pointer for type 1 - private_data=(nil)
Deregistering messaging pointer for type 1036 - private_data=(nil)
Deregistering messaging pointer for type 1035 - private_data=(nil)
Registering messaging pointer for type 1028 - private_data=(nil)
Registering messaging pointer for type 1027 - private_data=(nil)
Registering messaging pointer for type 1280 - private_data=(nil)
Registering messaging pointer for type 1 - private_data=(nil)
Registering messaging pointer for type 1034 - private_data=(nil)
Overriding messaging pointer for type 1034 - private_data=(nil)
child daemon request 48
connection_ok: Connection to (null) for domain AUTH is not connected
Opening cache file at /var/lib/samba/gencache.tdb
Opening cache file at /var/lib/samba/lock/gencache_notrans.tdb
saf_fetch[join]: Returning "dc01.auth.chrjsn.se" for "AUTH" domain
sitename_fetch: Returning sitename for realm 'AUTH.CHRJSN.SE': "Default-First-Site-Name"
name dc01.auth.chrjsn.se#20 found.
ads_try_connect: sending CLDAP request to 192.168.1.230 (realm: AUTH.CHRJSN.SE)
Successfully contacted LDAP server 192.168.1.230
namecache_store: storing 1 address for dc01.auth.chrjsn.se#20: 192.168.1.230
sitename_fetch: Returning sitename for realm 'AUTH.CHRJSN.SE': "Default-First-Site-Name"
saf_fetch[join]: Returning "dc01.auth.chrjsn.se" for "AUTH.CHRJSN.SE" domain
get_dc_list: preferred server list: "dc01.auth.chrjsn.se, *"
resolve_ads: Attempting to resolve KDCs for AUTH.CHRJSN.SE using DNS
ads_dns_lookup_srv: 1 records returned in the answer section.
sitename_fetch: Returning sitename for realm 'AUTH.CHRJSN.SE': "Default-First-Site-Name"
name dc01.auth.chrjsn.se#20 found.
get_dc_list: returning 1 ip addresses in an ordered list
get_dc_list: 192.168.1.230:88 
saf_fetch[join]: Returning "dc01.auth.chrjsn.se" for "AUTH.CHRJSN.SE" domain
get_dc_list: preferred server list: "dc01.auth.chrjsn.se, *"
resolve_ads: Attempting to resolve KDCs for AUTH.CHRJSN.SE using DNS
ads_dns_lookup_srv: 1 records returned in the answer section.
sitename_fetch: Returning sitename for realm 'AUTH.CHRJSN.SE': "Default-First-Site-Name"
name dc01.auth.chrjsn.se#20 found.
get_dc_list: returning 1 ip addresses in an ordered list
get_dc_list: 192.168.1.230:88 
create_local_private_krb5_conf_for_domain: wrote file /var/lib/samba/lock/smb_krb5/krb5.conf.AUTH with realm AUTH.CHRJSN.SE KDC list = 		kdc = 192.168.1.230

Connecting to 192.168.1.230 at port 445
Socket options:
	SO_KEEPALIVE = 0
	SO_REUSEADDR = 0
	SO_BROADCAST = 0
	TCP_NODELAY = 1
	TCP_KEEPCNT = 9
	TCP_KEEPIDLE = 7200
	TCP_KEEPINTVL = 75
	IPTOS_LOWDELAY = 0
	IPTOS_THROUGHPUT = 0
	SO_REUSEPORT = 0
	SO_SNDBUF = 87040
	SO_RCVBUF = 367360
	SO_SNDLOWAT = 1
	SO_RCVLOWAT = 1
	SO_SNDTIMEO = 0
	SO_RCVTIMEO = 0
	TCP_QUICKACK = 1
	TCP_DEFER_ACCEPT = 0
ldb_wrap open of secrets.ldb
connecting to dc01.auth.chrjsn.se (AUTH, AUTH.CHRJSN.SE) with account [AUTH\RADIUS01$] principal [RADIUS01$@AUTH.CHRJSN.SE] and realm [AUTH.CHRJSN.SE]
got OID=1.2.840.48018.1.2.2
GENSEC backend 'gssapi_spnego' registered
GENSEC backend 'gssapi_krb5' registered
GENSEC backend 'gssapi_krb5_sasl' registered
GENSEC backend 'spnego' registered
GENSEC backend 'schannel' registered
GENSEC backend 'naclrpc_as_system' registered
GENSEC backend 'sasl-EXTERNAL' registered
GENSEC backend 'ntlmssp' registered
GENSEC backend 'ntlmssp_resume_ccache' registered
GENSEC backend 'http_basic' registered
GENSEC backend 'http_ntlm' registered
Starting GENSEC mechanism spnego
Starting GENSEC submechanism gse_krb5
signed SMB2 message
set_dc_type_and_flags_connect: domain AUTH
signed SMB2 message
Bind RPC Pipe: host dc01.auth.chrjsn.se auth_type 0, auth_level 1
rpc_api_pipe: host dc01.auth.chrjsn.se
signed SMB2 message
rpc_read_send: data_to_read: 52
check_bind_response: accepted!
rpc_api_pipe: host dc01.auth.chrjsn.se
signed SMB2 message
rpc_read_send: data_to_read: 168
signed SMB2 message
signed SMB2 message
Bind RPC Pipe: host dc01.auth.chrjsn.se auth_type 0, auth_level 1
rpc_api_pipe: host dc01.auth.chrjsn.se
signed SMB2 message
rpc_read_send: data_to_read: 52
check_bind_response: accepted!
rpc_api_pipe: host dc01.auth.chrjsn.se
signed SMB2 message
rpc_read_send: data_to_read: 32
rpc_api_pipe: host dc01.auth.chrjsn.se
signed SMB2 message
rpc_read_send: data_to_read: 192
set_dc_type_and_flags_connect: domain AUTH is in native mode.
set_dc_type_and_flags_connect: domain AUTH is running active directory.
signed SMB2 message
Finished processing child request 48
child daemon request 20
[14164]: list trusted domains
get_cache: Setting ADS methods for domain AUTH
ads: trusted_domains
ldb_wrap open of secrets.ldb
Connecting to 192.168.1.230 at port 135
Socket options:
	SO_KEEPALIVE = 0
	SO_REUSEADDR = 0
	SO_BROADCAST = 0
	TCP_NODELAY = 1
	TCP_KEEPCNT = 9
	TCP_KEEPIDLE = 7200
	TCP_KEEPINTVL = 75
	IPTOS_LOWDELAY = 0
	IPTOS_THROUGHPUT = 0
	SO_REUSEPORT = 0
	SO_SNDBUF = 87040
	SO_RCVBUF = 367360
	SO_SNDLOWAT = 1
	SO_RCVLOWAT = 1
	SO_SNDTIMEO = 0
	SO_RCVTIMEO = 0
	TCP_QUICKACK = 1
	TCP_DEFER_ACCEPT = 0
Bind RPC Pipe: host dc01.auth.chrjsn.se auth_type 0, auth_level 1
rpc_api_pipe: host dc01.auth.chrjsn.se
rpc_write_send: data_to_write: 72
rpc_read_send: data_to_read: 44
check_bind_response: accepted!
rpc_api_pipe: host dc01.auth.chrjsn.se
rpc_write_send: data_to_write: 156
rpc_read_send: data_to_read: 136
Connecting to 192.168.1.230 at port 49153
Socket options:
	SO_KEEPALIVE = 0
	SO_REUSEADDR = 0
	SO_BROADCAST = 0
	TCP_NODELAY = 1
	TCP_KEEPCNT = 9
	TCP_KEEPIDLE = 7200
	TCP_KEEPINTVL = 75
	IPTOS_LOWDELAY = 0
	IPTOS_THROUGHPUT = 0
	SO_REUSEPORT = 0
	SO_SNDBUF = 87040
	SO_RCVBUF = 367360
	SO_SNDLOWAT = 1
	SO_RCVLOWAT = 1
	SO_SNDTIMEO = 0
	SO_RCVTIMEO = 0
	TCP_QUICKACK = 1
	TCP_DEFER_ACCEPT = 0
Bind RPC Pipe: host dc01.auth.chrjsn.se auth_type 0, auth_level 1
rpc_api_pipe: host dc01.auth.chrjsn.se
rpc_write_send: data_to_write: 72
rpc_read_send: data_to_read: 44
check_bind_response: accepted!
check lock order 3 for /var/lib/samba/lock/g_lock.tdb
release lock order 3 for /var/lib/samba/lock/g_lock.tdb
check lock order 2 for /var/lib/samba/private/netlogon_creds_cli.tdb
release lock order 2 for /var/lib/samba/private/netlogon_creds_cli.tdb
rpc_api_pipe: host dc01.auth.chrjsn.se
rpc_write_send: data_to_write: 122
rpc_read_send: data_to_read: 20
rpc_api_pipe: host dc01.auth.chrjsn.se
rpc_write_send: data_to_write: 164
rpc_read_send: data_to_read: 28
check lock order 2 for /var/lib/samba/private/netlogon_creds_cli.tdb
release lock order 2 for /var/lib/samba/private/netlogon_creds_cli.tdb
check lock order 3 for /var/lib/samba/lock/g_lock.tdb
release lock order 3 for /var/lib/samba/lock/g_lock.tdb
rpccli_setup_netlogon_creds: using new netlogon_creds cli[RADIUS01$/RADIUS01] to dc01.auth.chrjsn.se
Connecting to 192.168.1.230 at port 135
Socket options:
	SO_KEEPALIVE = 0
	SO_REUSEADDR = 0
	SO_BROADCAST = 0
	TCP_NODELAY = 1
	TCP_KEEPCNT = 9
	TCP_KEEPIDLE = 7200
	TCP_KEEPINTVL = 75
	IPTOS_LOWDELAY = 0
	IPTOS_THROUGHPUT = 0
	SO_REUSEPORT = 0
	SO_SNDBUF = 87040
	SO_RCVBUF = 367360
	SO_SNDLOWAT = 1
	SO_RCVLOWAT = 1
	SO_SNDTIMEO = 0
	SO_RCVTIMEO = 0
	TCP_QUICKACK = 1
	TCP_DEFER_ACCEPT = 0
Bind RPC Pipe: host dc01.auth.chrjsn.se auth_type 0, auth_level 1
rpc_api_pipe: host dc01.auth.chrjsn.se
rpc_write_send: data_to_write: 72
rpc_read_send: data_to_read: 44
check_bind_response: accepted!
rpc_api_pipe: host dc01.auth.chrjsn.se
rpc_write_send: data_to_write: 156
rpc_read_send: data_to_read: 136
Connecting to 192.168.1.230 at port 49153
Socket options:
	SO_KEEPALIVE = 0
	SO_REUSEADDR = 0
	SO_BROADCAST = 0
	TCP_NODELAY = 1
	TCP_KEEPCNT = 9
	TCP_KEEPIDLE = 7200
	TCP_KEEPINTVL = 75
	IPTOS_LOWDELAY = 0
	IPTOS_THROUGHPUT = 0
	SO_REUSEPORT = 0
	SO_SNDBUF = 87040
	SO_RCVBUF = 367360
	SO_SNDLOWAT = 1
	SO_RCVLOWAT = 1
	SO_SNDTIMEO = 0
	SO_RCVTIMEO = 0
	TCP_QUICKACK = 1
	TCP_DEFER_ACCEPT = 0
check lock order 3 for /var/lib/samba/lock/g_lock.tdb
release lock order 3 for /var/lib/samba/lock/g_lock.tdb
Starting GENSEC mechanism schannel
Bind RPC Pipe: host dc01.auth.chrjsn.se auth_type 68, auth_level 6
create_generic_auth_rpc_bind_req: generate first token
rpc_api_pipe: host dc01.auth.chrjsn.se
rpc_write_send: data_to_write: 102
rpc_read_send: data_to_read: 64
check_bind_response: accepted!
check lock order 3 for /var/lib/samba/lock/g_lock.tdb
release lock order 3 for /var/lib/samba/lock/g_lock.tdb
check lock order 3 for /var/lib/samba/lock/g_lock.tdb
release lock order 3 for /var/lib/samba/lock/g_lock.tdb
	seed        c0d19c61:e5ebe7f4
	seed+time   1c6d3930:e5ebe7f4
	CLIENT      9970cabc:e60483e6
	seed+time+1 1c6d3931:e5ebe7f4
	SERVER      9a6d42bd:4a8a7990
rpc_api_pipe: host dc01.auth.chrjsn.se
rpc_write_send: data_to_write: 280
rpc_read_send: data_to_read: 104
check lock order 2 for /var/lib/samba/private/netlogon_creds_cli.tdb
release lock order 2 for /var/lib/samba/private/netlogon_creds_cli.tdb
check lock order 3 for /var/lib/samba/lock/g_lock.tdb
release lock order 3 for /var/lib/samba/lock/g_lock.tdb
rpc_api_pipe: host dc01.auth.chrjsn.se
rpc_write_send: data_to_write: 152
rpc_read_send: data_to_read: 232
Finished processing child request 20
child daemon request 20
[14164]: list trusted domains
ads: trusted_domains
rpc_api_pipe: host dc01.auth.chrjsn.se
rpc_write_send: data_to_write: 152
rpc_read_send: data_to_read: 232
Finished processing child request 20
Registering messaging pointer for type 1030 - private_data=(nil)
Registering messaging pointer for type 1031 - private_data=(nil)
Deregistering messaging pointer for type 33 - private_data=(nil)
Deregistering messaging pointer for type 13 - private_data=(nil)
Deregistering messaging pointer for type 1028 - private_data=(nil)
Deregistering messaging pointer for type 1027 - private_data=(nil)
Deregistering messaging pointer for type 1029 - private_data=(nil)
Deregistering messaging pointer for type 1280 - private_data=(nil)
Deregistering messaging pointer for type 1033 - private_data=(nil)
Deregistering messaging pointer for type 1 - private_data=(nil)
Deregistering messaging pointer for type 1036 - private_data=(nil)
Deregistering messaging pointer for type 1035 - private_data=(nil)
Opening cache file at /var/lib/samba/gencache.tdb
Opening cache file at /var/lib/samba/lock/gencache_notrans.tdb
sitename_fetch: Returning sitename for realm 'auth.chrjsn.se': "Default-First-Site-Name"
ads_dc_name: domain=AUTH
sitename_fetch: Returning sitename for realm 'auth.chrjsn.se': "Default-First-Site-Name"
saf_fetch[join]: Returning "dc01.auth.chrjsn.se" for "auth.chrjsn.se" domain
get_dc_list: preferred server list: "dc01.auth.chrjsn.se, *"
name auth.chrjsn.se#1C found.
sitename_fetch: Returning sitename for realm 'AUTH.CHRJSN.SE': "Default-First-Site-Name"
name dc01.auth.chrjsn.se#20 found.
get_dc_list: returning 1 ip addresses in an ordered list
get_dc_list: 192.168.1.230:389 
ads_try_connect: sending CLDAP request to 192.168.1.230 (realm: auth.chrjsn.se)
Successfully contacted LDAP server 192.168.1.230
sitename_fetch: Returning sitename for realm 'auth.chrjsn.se': "Default-First-Site-Name"
saf_fetch[join]: Returning "dc01.auth.chrjsn.se" for "auth.chrjsn.se" domain
get_dc_list: preferred server list: "dc01.auth.chrjsn.se, *"
resolve_ads: Attempting to resolve KDCs for auth.chrjsn.se using DNS
ads_dns_lookup_srv: 1 records returned in the answer section.
sitename_fetch: Returning sitename for realm 'AUTH.CHRJSN.SE': "Default-First-Site-Name"
name dc01.auth.chrjsn.se#20 found.
get_dc_list: returning 1 ip addresses in an ordered list
get_dc_list: 192.168.1.230:88 
saf_fetch[join]: Returning "dc01.auth.chrjsn.se" for "auth.chrjsn.se" domain
get_dc_list: preferred server list: "dc01.auth.chrjsn.se, *"
resolve_ads: Attempting to resolve KDCs for auth.chrjsn.se using DNS
ads_dns_lookup_srv: 1 records returned in the answer section.
sitename_fetch: Returning sitename for realm 'AUTH.CHRJSN.SE': "Default-First-Site-Name"
name dc01.auth.chrjsn.se#20 found.
get_dc_list: returning 1 ip addresses in an ordered list
get_dc_list: 192.168.1.230:88 
create_local_private_krb5_conf_for_domain: wrote file /var/lib/samba/lock/smb_krb5/krb5.conf.AUTH with realm AUTH.CHRJSN.SE KDC list = 		kdc = 192.168.1.230

ads_dc_name: using server='DC01.AUTH.CHRJSN.SE' IP=192.168.1.230
sitename_fetch: Returning sitename for realm 'auth.chrjsn.se': "Default-First-Site-Name"
saf_fetch[join]: Returning "dc01.auth.chrjsn.se" for "auth.chrjsn.se" domain
get_dc_list: preferred server list: "dc01.auth.chrjsn.se, *"
name auth.chrjsn.se#1C found.
sitename_fetch: Returning sitename for realm 'AUTH.CHRJSN.SE': "Default-First-Site-Name"
name dc01.auth.chrjsn.se#20 found.
get_dc_list: returning 1 ip addresses in an ordered list
get_dc_list: 192.168.1.230:389 
saf_fetch[join]: Returning "dc01.auth.chrjsn.se" for "auth.chrjsn.se" domain
get_dc_list: preferred server list: "dc01.auth.chrjsn.se, *"
name auth.chrjsn.se#1C found.
sitename_fetch: Returning sitename for realm 'AUTH.CHRJSN.SE': "Default-First-Site-Name"
name dc01.auth.chrjsn.se#20 found.
get_dc_list: returning 1 ip addresses in an ordered list
get_dc_list: 192.168.1.230:389 
msg_try_to_go_online: received for domain AUTH.
msg_try_to_go_online: domain AUTH already online.
Already reaped child 14173 died
[14191]: request interface version (version = 29)
[14191]: request location of privileged pipe
[14191]: request domain name
[14191]: pam auth crap domain: [AUTH] user: adtest
child daemon request 14
[14164]: pam auth crap domain: AUTH user: adtest
rpc_api_pipe: host dc01.auth.chrjsn.se
rpc_write_send: data_to_write: 392
rpc_read_send: data_to_read: 104
NTLM CRAP authentication for user [AUTH]\[adtest] returned NT_STATUS_WRONG_PASSWORD
Finished processing child request 14
[14196]: request interface version (version = 29)
[14196]: request location of privileged pipe
[14196]: request misc info
[14196]: pam auth auth.chrjsn.se\adtest
child daemon request 13
[14164]: dual pam auth AUTH.CHRJSN.SE\adtest
rpc_api_pipe: host dc01.auth.chrjsn.se
rpc_write_send: data_to_write: 376
rpc_read_send: data_to_read: 648
ads: fetch sequence_number for AUTH
sitename_fetch: Returning sitename for realm 'auth.chrjsn.se': "Default-First-Site-Name"
ads_dc_name: domain=AUTH
sitename_fetch: Returning sitename for realm 'auth.chrjsn.se': "Default-First-Site-Name"
saf_fetch[join]: Returning "dc01.auth.chrjsn.se" for "auth.chrjsn.se" domain
get_dc_list: preferred server list: "dc01.auth.chrjsn.se, *"
name auth.chrjsn.se#1C found.
sitename_fetch: Returning sitename for realm 'AUTH.CHRJSN.SE': "Default-First-Site-Name"
name dc01.auth.chrjsn.se#20 found.
get_dc_list: returning 1 ip addresses in an ordered list
get_dc_list: 192.168.1.230:389 
ads_try_connect: sending CLDAP request to 192.168.1.230 (realm: auth.chrjsn.se)
Successfully contacted LDAP server 192.168.1.230
sitename_fetch: Returning sitename for realm 'auth.chrjsn.se': "Default-First-Site-Name"
saf_fetch[join]: Returning "dc01.auth.chrjsn.se" for "auth.chrjsn.se" domain
get_dc_list: preferred server list: "dc01.auth.chrjsn.se, *"
resolve_ads: Attempting to resolve KDCs for auth.chrjsn.se using DNS
ads_dns_lookup_srv: 1 records returned in the answer section.
sitename_fetch: Returning sitename for realm 'AUTH.CHRJSN.SE': "Default-First-Site-Name"
name dc01.auth.chrjsn.se#20 found.
get_dc_list: returning 1 ip addresses in an ordered list
get_dc_list: 192.168.1.230:88 
saf_fetch[join]: Returning "dc01.auth.chrjsn.se" for "auth.chrjsn.se" domain
get_dc_list: preferred server list: "dc01.auth.chrjsn.se, *"
resolve_ads: Attempting to resolve KDCs for auth.chrjsn.se using DNS
ads_dns_lookup_srv: 1 records returned in the answer section.
sitename_fetch: Returning sitename for realm 'AUTH.CHRJSN.SE': "Default-First-Site-Name"
name dc01.auth.chrjsn.se#20 found.
get_dc_list: returning 1 ip addresses in an ordered list
get_dc_list: 192.168.1.230:88 
create_local_private_krb5_conf_for_domain: wrote file /var/lib/samba/lock/smb_krb5/krb5.conf.AUTH with realm AUTH.CHRJSN.SE KDC list = 		kdc = 192.168.1.230

ads_dc_name: using server='DC01.AUTH.CHRJSN.SE' IP=192.168.1.230
sitename_fetch: Returning sitename for realm 'auth.chrjsn.se': "Default-First-Site-Name"
ads_dc_name: domain=AUTH
sitename_fetch: Returning sitename for realm 'auth.chrjsn.se': "Default-First-Site-Name"
saf_fetch[join]: Returning "dc01.auth.chrjsn.se" for "auth.chrjsn.se" domain
get_dc_list: preferred server list: "dc01.auth.chrjsn.se, *"
name auth.chrjsn.se#1C found.
sitename_fetch: Returning sitename for realm 'AUTH.CHRJSN.SE': "Default-First-Site-Name"
name dc01.auth.chrjsn.se#20 found.
get_dc_list: returning 1 ip addresses in an ordered list
get_dc_list: 192.168.1.230:389 
ads_try_connect: sending CLDAP request to 192.168.1.230 (realm: auth.chrjsn.se)
Successfully contacted LDAP server 192.168.1.230
sitename_fetch: Returning sitename for realm 'auth.chrjsn.se': "Default-First-Site-Name"
saf_fetch[join]: Returning "dc01.auth.chrjsn.se" for "auth.chrjsn.se" domain
get_dc_list: preferred server list: "dc01.auth.chrjsn.se, *"
resolve_ads: Attempting to resolve KDCs for auth.chrjsn.se using DNS
ads_dns_lookup_srv: 1 records returned in the answer section.
sitename_fetch: Returning sitename for realm 'AUTH.CHRJSN.SE': "Default-First-Site-Name"
name dc01.auth.chrjsn.se#20 found.
get_dc_list: returning 1 ip addresses in an ordered list
get_dc_list: 192.168.1.230:88 
saf_fetch[join]: Returning "dc01.auth.chrjsn.se" for "auth.chrjsn.se" domain
get_dc_list: preferred server list: "dc01.auth.chrjsn.se, *"
resolve_ads: Attempting to resolve KDCs for auth.chrjsn.se using DNS
ads_dns_lookup_srv: 1 records returned in the answer section.
sitename_fetch: Returning sitename for realm 'AUTH.CHRJSN.SE': "Default-First-Site-Name"
name dc01.auth.chrjsn.se#20 found.
get_dc_list: returning 1 ip addresses in an ordered list
get_dc_list: 192.168.1.230:88 
create_local_private_krb5_conf_for_domain: wrote file /var/lib/samba/lock/smb_krb5/krb5.conf.AUTH with realm AUTH.CHRJSN.SE KDC list = 		kdc = 192.168.1.230

ads_dc_name: using server='DC01.AUTH.CHRJSN.SE' IP=192.168.1.230
ads_try_connect: sending CLDAP request to 192.168.1.230 (realm: auth.chrjsn.se)
Successfully contacted LDAP server 192.168.1.230
Connected to LDAP server dc01.auth.chrjsn.se
KDC time offset is 0 seconds
Found SASL mechanism GSS-SPNEGO
ads_sasl_spnego_bind: got OID=1.2.840.48018.1.2.2
ads_sasl_spnego_bind: got OID=1.2.840.113554.1.2.2
ads_sasl_spnego_bind: got OID=1.3.6.1.4.1.311.2.2.10
Starting GENSEC mechanism spnego
Starting GENSEC submechanism gse_krb5
Search for (objectclass=*) in <> gave 1 replies
Plain-text authentication for user AUTH.CHRJSN.SE\adtest returned NT_STATUS_OK (PAM: 0)
Finished processing child request 13


More information about the Freeradius-Users mailing list