rgl / nexus-vagrant

Vagrant Environment for a Nexus Repository OSS service
25 stars 12 forks source link

Disable Realm in Nexus #4

Open amruthapbhat opened 6 years ago

amruthapbhat commented 6 years ago

Hi,

I was looking out for an option to disable the Local Authenticating Realm from nexus. I tried the enable option and it works so similarly i tried the realmManager.disableRealm("LocalAuthentication") as i wanted to disable the default login and password.

Could you please let me know if there is a specific way/ keys which i could use to disable the the default login.

Regards, Amrutha

russoz commented 6 years ago

Amrutha,

I believe the script nexus-vagrant/provision/provision-nexus/src/main/groovy/deploy.groovy

is deleting users, you could use that as an example.

I would recommend that you change the password for the admin, rather than disabling the realm. That way, if everything else fails (say the LDAP goes south), you can still log in and perform some administrative task using the local id.