ntlm_auth authentication against multiple ADS domains
Hi All, This is more of an ntlm_auth how to than a FreeRADIUS question, but I thought I would post here since others may have run across this. We're trying to use ntlm_auth and FreeRADIUS to authenticate users against an ADS back-end. I've found several excellent articles on how to set this up, and I have it working with a single ADS domain. The problem I've encountered is performing authentication against multiple ADS domains using ntlm_auth. ADS Parent domain netidm.net ADS Child domain xyz.abc.com If I join to abc.com using net ads join, I can use ntlm_auth with no problems, but how do I perform authentications against xyz.abc.com ? I've tried: Ntlm_auth --request-nt-key --DOMAIN=XYZ --username=jdoe But I get an NT_STATUS_IO_TIMEOUT. I'm assuming this is because I'm joined to the Parent domain and not the child domain, but can't this work by only joining the one domain? # Samba Config workgroup = ABC server string = Samba Server security = ads load printers = yes log file = /usr/local/samba/var/log.%m max log size = 50 realm = ABC.COM wins server = 180.44.200.53 dns proxy = no comment = Home Directories browseable = no writable = yes comment = All Printers path = /usr/spool/samba browseable = no guest ok = no writable = no printable = yes #Kerberos Config default = FILE:/var/log/krb5libs.log kdc = FILE:/var/log/krb5kdc.log admin_server = FILE:/var/log/kadmind.log default_realm = ABC.COM dns_lookup_realm = false dns_lookup_kdc = false ticket_lifetime = 24h forwardable = yes ABC.COM = { kdc = 180.44.200.53:88 kdc = 180.44.200.54:88 } XYZ.ABC.COM = { kdc = 180.44.200.69:88 } .abc.com = ABC.COM abc.com = ABC.COM .xyz.abc.com = XYZ.ABC.COM xyz.abc.com = XYZ.ABC.COM profile = /var/kerberos/krb5kdc/kdc.conf pam = { debug = false ticket_lifetime = 36000 renew_lifetime = 36000 forwardable = true krb4_convert = false } Any help greatly appreciated. Corey Corey Dow Network Solution's Test Center ProCurve Networking by HP
On Thu, 8 Feb 2007, Dow, Corey wrote:
up, and I have it working with a single ADS domain. The problem I've encountered is performing authentication against multiple ADS domains using ntlm_auth.
ADS Parent domain netidm.net ADS Child domain xyz.abc.com
Are you actually trying to authenticate to domains in separate forests (e.g. netidm.net and abc.com) or are you trying to authenticate to both a parent and child domain in the same forest (e.g. abc.com and child.abc.com)?
If I join to abc.com using net ads join, I can use ntlm_auth with no problems, but how do I perform authentications against xyz.abc.com ?
If these domains are in separate forests, you'll need an explicit trust between the two forests. In the domains are in the same forest, there's an implicit trust between them already. Have you tried the reverse (joining child.abc.com and authenticating users in abc.com)? Not saying that would work, just curious. Any hints in the kerberos logfiles?
Corey Dow Network Solution's Test Center ProCurve Networking by HP
Nice products. =) Any chance you could mail me (off-list) directions for disabling the password on a 9308m from the console (password is lost and I keep forgetting how). I've bothered ProCurve support enough. =) Thanks, -j -- Jeremy L. Gaddis, MCP, GCWN jeremy@linuxwiz.net LinuxWiz Consulting http://linuxwiz.net
Dow, Corey wrote:
Ntlm_auth --request-nt-key --DOMAIN=XYZ --username=jdoe
This has been mentioned a few times in the archives, I believe without resolution. I'm not certain it works without some level of fiddling - it's been a while and my samba/ntdom/kerb skills are two years rusty, but I can envisage needing to enable permissions. Specifically the ntlm_auth helper executes an MS-RPC against the DC. You'll need to both authenticate to the DC in the other domain *and* have permissions to execute that RPC. You might ask on the Samba mailing list - they'll have more familiarity with the vagaries of the NT domain protocols and trusts. Do please let us know if you do and get an answer.
But I get an NT_STATUS_IO_TIMEOUT.
Interesting. If you wireshark at the same time, what you can Samba doing?
participants (3)
-
Dow, Corey -
Gaddis, Jeremy L. -
Phil Mayers