opends:Is there a way for root user account/root Dns to send account notifications based on the password policies? - ldap

Description :
Enabled SMTP handler and mail properties global configuration via dsconfig, enabled SMTP handler in root user password policy, also configured root user password policy for password expiration notification, created a new root user, assigned root user password policy to that root user.
Any password change (reset) or password expiry warning for this root user is not notified to the email id configured in the recipient address of the SMTP Handler. This works fine for 'Default Password Policy' and for any password related changes to the end user (users under ou=user node). But notification does not work for root DNs/root users and it's password policies.
Is there a way to send email notifications or alerts for any root user based on it's password policy. Kindly let me know. Thanks!

Related

Update the keycloak account temporary password from our own website once super admin creates a user account

Here I'm using keycloak for the user management of my website. I want to send a password reset email once the keycloak super admin creates a user account. The email reset password link should route to my own website reset password page (Not to keycloak reset password page).
I'm done with up to here.
The issue is when sending the password reset request, expected following values...
session_code: xxxx
execution: UPDATE_PASSWORD
client_id: client-id
tab_id: xxxxxxxx
How can I get session_code and tab_id to create a reset password request from my own website?
I tried with decoding the key that comes with the email link. but couldn't find a way.

How to add primary email to every users in github enterprise via keycloak?

I have github enterprise configured. I use keycloak for authentication.
Sign up/ login flow is like this,
Users click sign in with SAML from github enterprise.
Then they are redirected to keycloak login page.
Where they can choose github.com for signup.
After successful authentication from github.com users are redirected to github
enterprise.
Now a new user has been created in keycloak with username as of github.com username and email as of github.com email.
But in github enterprise, user's username is created by parsing the first part before the # of email id and user's email id is not getting updated in github enterprise user account even though github enterprise is receiving email id from keycloak.
Users get the following notification, saying them to add one email address.
If an user don't add their email, they don't get email for events like organization invitation, password reset.
This not what i want. I also not what the users to manually add email id to their account.
I want get github enterprise user's username and email to be the same as of keycloak.
How can i achieve this ?
We have extracted saml response from keycloak to ghe by inspecting the /consume request in browser network. When SAML response is decoded (using samltool.io), we identified that keycloak is not sending email attribute to ghe.
Github used the following attributes for updating profile information. So keycloak needs to send attribute in variable specified in this field.
We have found that there is some builtin "Mappers" available in client which can be used for sending some specified predetermined attributes to client applications.
Select your client -> Mappers -> Add builtin. Select the required mappers and click Add.
Open x500 Email and set "SAML Attribute Name" to the variable same as the variable name set on github. Provide some Property and Friendly Name.
Now you will get email address in user's account.

Keycloak: Disable redirect to account page after password reset and show message

I am using Keycloak and I want to enable Forgot password flow. I have enabled Forgot password in login and configured SMTP to send email.
What I get out of the box from keycloak is the following
-> Click on Forgot password link -> Enter username or email -> User receives an Email with reset link -> Click on the link -> Reset password, then submit -> User is logged in then The user is redirected to account page.
What I want to acheive is the following
-> Click on Forgot password link -> Enter username or email -> User receives an Email with reset link -> Click on the link -> Reset password, then submit -> Display a message saying "Your password has been updated." and do not login the user. stay on that page.
The reason for this is, for my use-case, the user shouldn't access the account page on Keycloak.
In the authentication flow of reset credentials, I can only configure up to reset credentials.
Is there any way I can disable this action of logging in the user automatically after password reset, then redirecting to account page?
I have looked into several questions, but I cannot find an answer on how this can be achieved.
PS: I am using Keycloak docker image with a custom theme. If this can be configured using custom theme options, I have the chance to do it.
Thank you in advance.
Go to your keaycloak admin console, Authentication and desable "Update Profile"
Hopo it helps :)
We faced similar issue during keycloak usage and solved it via implementing custom Action Token and Action token handler (docs). Also check out original keycloak reset credentials action token sources:
ActionToken
ActionTokenHandler
Try to play around AbstractActionTokenHander.startFreshAuthenticationSession() there several attributes that define Keycloak behaviour during reset flow like:
authSession.setRedirectUri(token.getNote(OIDCLoginProtocol.REDIRECT_URI_PARAM));
authSession.setAuthNote(AuthenticationManager.END_AFTER_REQUIRED_ACTIONS, "true");
authSession.setAuthNote(AuthenticationManager.SET_REDIRECT_URI_AFTER_REQUIRED_ACTIONS, "true");
authSession.setAuthNote(AuthenticationManager.END_AFTER_REQUIRED_ACTIONS, "true");
If you're using your own client for the login page, the specified redirect, or the client default (Base URL) will direct where the user is sent after the password reset.
We did see that when using an admin-directed password reset, this behavior would occur (user sent to Keycloak account page). So, we simply adjusted the Base URL value for the account client so that it points to the home page of our primarily application.
Then, after the account client is used to reset the password, the default redirect is to our home page.

Password of rabbitmq system user

It's written in the documentation that RabbitMQ server
is set up to run as system user rabbitmq
What is the default password of the user?
Defaults :
Username: guest
Password: guest
There is no default password for a Linux user. The password can be set during account creation; if it isn't set, then it won't exist, and password auth is disabled for that user (/etc/shadow will show the password as '!!'). Without knowing the password (or it existing), it can only be changed/set by root.

Sending Active Admin email when creating new Active Admin user

I am using Active Admin in my Rails Application. I have been able to set it up and use default user but I cannot add new User. When I go to Add New Admin User it lets me put in a username but never sends the email to setup a password. How does Active Admin send the default email out of a development configuration to be able to setup a password for my users?
Active Admin, by default, uses Devise for authentication. If you enable :confirmable it'll email that user to verify the creation of their account. You can read details on enabling :confirmable on an existing setup here: https://github.com/plataformatec/devise/wiki/How-To%3a-Add-%3aconfirmable-to-Users