How to enable LDAP connection for MySQL using java? [closed] - java

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am trying to authenticate users from LDAP server to use the database using JAVA code. So far I have authentication working I just need to know how to get the roles from the LDAP?

According to the MySQL 5.5 manual, the way to get different MySQL roles for different users depending on their LDAP group membership is to use the PAM authentication plugin's proxy user mechanism. The manual includes extensive material on how to do this, and it would be pointless to repeat it all here.
However, you don't configure this from Java, and the mechanisms are not Java / JDBC specific.

Related

How to connect the same database with web application and android app? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I am creating a complaint management system for my university final year project with two components
1-an android app through which the user launches a complaint.
2- web application for admin that can see and take action on complaints launched through the app
PROBLEM : I need to connect both of these application to a single database, how do I go about doing that ?
Should I use API PHPmyadmin ....I seriously do not know where to begin.
Neither should connect to the Database. You frontend / client / app should never talk to the DB directly.
You need to create an API in between, that API is hosted on your server and talks to the Database. The clients talk to the API and the API can manage who is allowed to do what, determine if they are authenticated, do some logging, etc.

Custom Rest Api Java Authentication using Firestore [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I was wondering how to create a java rest api where there is possibility to create something like a "signUp" and "signIn" user authentication to firestore (given it tokens). Supporting it with endpoints which can be accessed with for example postman or swift or android app when the api link is provided.
If I understood your question correctly, you would like to build a REST API which internally authenticates against Firestore? This can definitely be done by exposing the Firebase REST API for authentication with the Java binding for admin accesses.

Login web application with local user [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
To using a computer I need inform a network user to connect. So, I wanna know if it is possible to connect to a web application using
the local user without putting again the user and password. In other words, I need to recognize the local user to auto authentication when entering the web application.
Is it possible?
Maybe I don't understand the question correctly but, wouldn't a
System.getProperty("user.name");
get you the username? As for pulling the users password I doubt that would be easy, but I don't think a user would mind too much putting in the password again if their username autopopulated.

How do I import data from Activie directories through LDAP URL [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have got a requirement to connect Active directory systems through LDAP URL. I need to start this development very easiest way and looking to deliver this ASAP. Kindly share your thoughts.
I will be using Oracle JDeveloper for this development.
pure java example:
http://www.adamretter.org.uk/blog/entries/LDAPTest.java
If you can use Spring, go with spring-ldap:
http://projects.spring.io/spring-ldap/
Spring is really good library to handle ActiveDirectory connectivity. Just read the manual thats all.

Licensing a java web based application [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am developing a web application that will be sold later on, and was wondering how to add the concept of license to it, so that I can avoid it's piracy, and it can be used for given period of time only?
You can have a centralize licence server , have a DB to check user's status , expose this thing using webservice so that any of your app can consume it.
I've seen Java enterprise tools do the usual serial number/license file thing. Worked pretty well for them. All you'd need to do is put some static code in the application that would execute when the JavaEE container loads the WAR file and have that check the serial number.

Categories