My new colleague pointed me in the right way while I was scripting waaaaay too much to create a backup of the Weblogic users and groups.
The easiest way is to use the daily backup which is created by weblogic itself.
The backup is located on de adminserver, in this location:
$base_domain/servers/AdminServer/data/ldap/backup/EmbeddedLDAPBackup.zip
If there’s an issue with your embedded ldap, you can stop the adminserver, restore these files to this location:
$base_domain/servers/AdminServer/data/ldap/ldapfiles
Continue reading “Weblogic LDAP backup (daily, and also very very simple)”
Weblogic, 1 managed server gives HTTP Error 401 Unauthorized, other works fine.
I encountered this weird behaviour last week where one managed server in a cluster of two servers constantly gave the error “HTTP Error 401 Unauthorized“.
The setup was a standard Oracle Service Bus installation on Oracle Weblogic.
The domain consisted out of one Admin server, one cluster with two managed servers.
Managed Server #1 was acting without problems but all the requests which needed authentication and which where pointed to Managed Server #2 failed and responded with a 401 Unauthorized message.
There was an error in the logs of MS#2, which is displayed at the bottom of this post as well.
#### <> <Inbound http BASIC authentication failed
javax.security.auth.login.FailedLoginException: [Security:090304]Authentication Failed: User webhosting javax.security.auth.login.FailedLoginException: [Security:090302]Authentication Failed: User webhosting denied
The solution to this problem lies in the internal LDAP configuration of the faulty Managed Server. I did not find an answer to what might have caused this problem, but the solution was to rebuild the LDAP setting of the Managed Server.
This is done by following these steps:
- Shut down Managed Server via Weblogic Console
- Log in via SSH
- Rename the following folder:
%domain_directory%/servers/%osb_managed_server_1%/data/ldap
- Start the Managed Server via Weblogic Console
These steps will rebuild the LDAP folder, which is the internal LDAP to which Weblogic authenticates.
You can then remove the folder you’ve backed up in step 3.
Continue reading “Weblogic, 1 managed server gives HTTP Error 401 Unauthorized, other works fine.”