on 2025 Apr 02 5:44 AM
After logging into SAP Business One, our system automatically loads the Fiori-style Analytics dashboard (Pervasive Analytics). While the Manager user has no issues accessing the dashboard, other users consistently receive an "Invalid Username/Password" error when the dashboard loads.
Details:
What I've Checked/Done:
My Questions:
Request clarification before answering.
Hi Sisira,
Yes, PAL_ROLE and AFL execution rights required for non-manager users as well.
GRANT PAL_ROLE TO "<USER>";
GRANT AFL__SYS_AFL_AFLPAL_EXECUTE TO "<USER>";
Non-manager users may not have the required database privileges, while the Manager user does.
Thanks,
Jakes
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hello agian ,
the problem happened because the keycloak (authentication service) by default enforce all users to lowercase , so when you are login with sap b1 user with mixed cases or upper case this problem will show due to the above reason , the cockpit will not accept the login because the username passed is in lower case , i have figured out what is the issue , i have recompiled jar files that in charge of username and post them .. here is the complete guide for best results :
download my new compiled keycloak_tolowercase.tar.gz from here :
https://github.com/maenmustafa/keycloak/blob/main/keycloak_tolowercase.tar.gz
place it in any folder ..
then extract it ..
tar -xvf keycloak_tolowercase.tar.gz
go to the original folder and backup the original jar files :
cd /usr/sap/SAPBusinessOne/Common/keycloak/lib/lib/main
cp org.keycloak.keycloak-crypto-default-24.0.4.jar org.keycloak.keycloak-crypto-default-24.0.4.jar.bak
cp org.keycloak.keycloak-model-jpa-24.0.4.jar org.keycloak.keycloak-model-jpa-24.0.4.jar.bak
cp org.keycloak.keycloak-model-storage-24.0.4.jar org.keycloak.keycloak-model-storage-24.0.4.jar.bak
cp org.keycloak.keycloak-model-storage-private-24.0.4.jar org.keycloak.keycloak-model-storage-private-24.0.4.jar.bak
cp org.keycloak.keycloak-server-spi-24.0.4.jar org.keycloak.keycloak-server-spi-24.0.4.jar.bak
cp org.keycloak.keycloak-server-spi-private-24.0.4.jar org.keycloak.keycloak-server-spi-private-24.0.4.jar.bak
cp org.keycloak.keycloak-services-24.0.4.jar org.keycloak.keycloak-services-24.0.4.jar.bak
then back to the orignal folder where the jar files exist
cp org.keycloak* /usr/sap/SAPBusinessOne/Common/keycloak/lib/lib/main
back to keycloak directory :
cd /usr/sap/SAPBusinessOne/Common/keycloak/lib/lib/main
chmod 775 org.keycloak.keycloak-crypto-default-24.0.4.jar
chmod 775 org.keycloak.keycloak-model-jpa-24.0.4.jar
chmod 775 org.keycloak.keycloak-model-storage-24.0.4.jar
chmod 775 org.keycloak.keycloak-model-storage-private-24.0.4.jar
chmod 775 org.keycloak.keycloak-server-spi-24.0.4.jar
chmod 775 org.keycloak.keycloak-server-spi-private-24.0.4.jar
chmod 775 org.keycloak.keycloak-services-24.0.4.jar
chown b1service0:b1service0 org.keycloak.keycloak-crypto-default-24.0.4.jar
chown b1service0:b1service0 org.keycloak.keycloak-model-jpa-24.0.4.jar
chown b1service0:b1service0 org.keycloak.keycloak-model-storage-24.0.4.jar
chown b1service0:b1service0 org.keycloak.keycloak-model-storage-private-24.0.4.jar
chown b1service0:b1service0 org.keycloak.keycloak-server-spi-24.0.4.jar
chown b1service0:b1service0 org.keycloak.keycloak-server-spi-private-24.0.4.jar
chown b1service0:b1service0 org.keycloak.keycloak-services-24.0.4.jar
Login to Authentication Service
https://ServerIP_Or_Name:40020/auth/admin/sapb1/console/
login with B1SiteUser and password and then go to users
.. delete all users EXCEPT b1siteuser
now restart the services
service sapb1servertools-authentication restart
the login to sap business one and the problem is solved.
Regards
Maen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Boris,
B1_4d4c535F502443230323341_RO and other B1_* users are shared technical users (runtime generated, hence less in number also). Basically, internal SB1 users are not directly mapped.
Please see 'PAL_USER_MAPPING'
SELECT * FROM "PAL_USER_MAPPING";
to see technical users to role
Thanks,
Arun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
21 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.