Page 1 of 1

[SOLVED] Configuration: two forests, two domains, one WAPT server

Published: January 6, 2025 - 10:55 AM
by Sylvain
Hello everyone! I'll try to keep it simple. Here's my new project, which involves several domains:
My setup: On my main Windows Server 2022 Hyper-V server, I have an existing and functional AD DS DNS VM with the "efv2.efv2.ad" forest and "efv2.ad" domain. I also have a functional Debian VM with NGINX for WAPT Enterprise 2.5, connected via another Debian VM with NGINX reverse proxy stream and a functional HTTPS secure by password interface. So far, so good.
I now have a second AD DS DNS VM on my main server with another functional "lifv.lifv.ad" forest and "lifv.ad" domain. My new client machines can be added to either of these domains.
My question: I saw in the documentation that I need to add a .keytab, but before I mess things up as usual, I'd prefer to check with you.

I'm getting confused about Kerberos and the keytab. Do I need to put the public URL of my online server: https://www.srvwapt.lifv.lt/ like HTTP/-URL-.domain.local.keytab = HTTP/srvwapt.lifv.lt.lifv.ad + HTTP/srvwapt.lifv.lt.efv2.ad? Or is it none of that since the UPN also adds the domain?
Do I need to change the SPN of two computer clients and two user clients in both ADs?
On the interface, do I need to change the deployment and add a new --hash to create a new GPO in my second domain?
In my new AD DS VM, do I need to create an account for the WAPT server machine?
Any help would be greatly appreciated :)!
Thanks, have a good day!
Sylvain

Re: config: two forests, two domains, one WAPT server

Published: January 7, 2025 - 5:06 PM
by blemoigne
Good morning,
For Kerberos, a machine account is required on each parent domain with the SPN corresponding to the WAPT server name as it is called in the agent's configuration file (wapt-get.ini). If in wapt-get.ini, we have "wapt_server = https://srvwapt.lifv.lt", then the keytab must be created in such a way:

in the lifv.ad domain:

Code: Select all

ktpass -out C:\http-krb5.keytab -princ HTTP/srvwapt.lifv.lt@LIFV.AD rndpass -minpass 64 -crypto all -pType KRB5_NT_PRINCIPAL /mapuser srvwapt$@LIFV.AD
in the efv2.ad domain:

Code: Select all

ktpass -out C:\http-krb5.keytab -princ HTTP/srvwapt.lifv.lt@EFV2.AD rndpass -minpass 64 -crypto all -pType KRB5_NT_PRINCIPAL /mapuser srvwapt$@EFV2.AD
then merge the keytab files, and place them in their directory with the correct permissions.

Good evening,
Bertrand

Re: config: two forests, two domains, one WAPT server

Published: January 8, 2025 - 2:33 PM
by Sylvain
Thanks Bertrand, we already worked together on this keytab in June, I'll try it and let you know. :)

Edit: @bertrand you're the best once again, it's working now, I have both forests in the console :).

Re: config: two forests, two domains, one WAPT server

Published: January 9, 2025 - 9:33 AM
by blemoigne
Ah yes, I didn't recognize you, thanks for the reply. ;)
Could you mark the post as resolved?
Have a good day!
Bertrand