Comprehensive data protection for all workloads
Post Reply
b.vanhaastrecht
Service Provider
Posts: 880
Liked: 164 times
Joined: Aug 26, 2013 7:46 am
Full Name: Bastiaan van Haastrecht
Location: The Netherlands
Contact:

Enterprise Manager ad domain name

Post by b.vanhaastrecht »

Hi,

We would like to default add our NT domain name to every user that wants to enter the Enterprise Manager. I've looked at the scripts, but javascript isn't my deal and there's some kind of CMS engine on top of it. Could someone from dev point out the lines to alter to add the NT domain name?

Thanks in advance!

Regards,
Bastiaan
======================================================
Veeam ProPartner, Service Provider and a proud Veeam Legend
b.vanhaastrecht
Service Provider
Posts: 880
Liked: 164 times
Joined: Aug 26, 2013 7:46 am
Full Name: Bastiaan van Haastrecht
Location: The Netherlands
Contact:

Re: Enterprise Manager ad domain name

Post by b.vanhaastrecht » 2 people like this post

Couldn't stop investigating. Have managed to alter the code myself:
  • - Make a backup of the file Login.aspx in %VeeamInstallDir%\Veeam\Backup and Replication\Enterprise Manager\WebApp
    - Edit this file
    - Go to the 'var getFormParams = function(lf)' line (49) and alter as below:

Code: Select all

    var getFormParams = function(lf) {
        var params = lf.captureData();
	var domainName = "@your fqdn domain name";
	params["username"] = (params["username"]) + domainName;
	alert(params["username"]);
        params["password"] = Base64.encode(params["password"]);
        return params;
    };
When the user presses login, the '@your fqdn domain name' value is added to the username. Be aware, you cant login with local accounts anymore.
======================================================
Veeam ProPartner, Service Provider and a proud Veeam Legend
b.vanhaastrecht
Service Provider
Posts: 880
Liked: 164 times
Joined: Aug 26, 2013 7:46 am
Full Name: Bastiaan van Haastrecht
Location: The Netherlands
Contact:

Re: Enterprise Manager ad domain name

Post by b.vanhaastrecht »

Remove the alert(..... line, this was for debug.
======================================================
Veeam ProPartner, Service Provider and a proud Veeam Legend
dellock6
VeeaMVP
Posts: 6166
Liked: 1971 times
Joined: Jul 26, 2009 3:39 pm
Full Name: Luca Dell'Oca
Location: Varese, Italy
Contact:

Re: Enterprise Manager ad domain name

Post by dellock6 »

Nice, thanks Bastiaan!
Luca Dell'Oca
Principal EMEA Cloud Architect @ Veeam Software

@dellock6
https://www.virtualtothecore.com/
vExpert 2011 -> 2022
Veeam VMCE #1
Post Reply

Who is online

Users browsing this forum: Google [Bot], Semrush [Bot] and 226 guests