Spring Security LDAP and Database - spring-security-ldap

I need help/example on how to implement both LDAP (Active Directory) and Database authentication for spring security .
I started from gs-spring-security-3.2-master on github , and want to add LDAP to it .
BR

Related

Protect Admin REST API of SyncGateway

I have an application will request Sync gateway through Admin REST API. So it’s possible to configure the sync gateway to use the client credentials grant flow to request Admin API?
My application and sync gateway are in different network.
The implementation look like this:
. Resource Owner : My application
. Resource Server : Sync Gateway
. Client Application : My application
. Authorization Server : my IDP server
thanks
Sync gateway admin rest API does not need any credentials to access as long as your client know the host or ipaddress of the sync gateway, client should be able to request admin API and client application network should be able to reach the network which sync gateway is hosted

WSO2 API manager API not displaying properly

I'm deploying WSO2 API manager 2.6.0 with an external MySQL database and I'm trying to have my API's persist when I change my deployment.
Currently I have 2 deployments using the same external database, one local and the other hosted on an AWS EKS cluster. When I create an API on my local deployment, I can only view it on my AWS deployment if I'm logged in to the store, and visa-versa for my localhost deployment.
The expected and desired behaviour is that all APIs created on both deployments should be displayed on the store no matter if I'm logged in or not, is there any configurations I can change to make the happen?
Here is the doc I used to configure the external database: https://docs.wso2.com/display/AM260/Installing+and+Configuring+the+Databases

Spring Integration - FTP is not working with OpenShift

I have used Spring Integration FTP to copy files from an FTP server to local and processing it. It is working fine with local using Spring Boot and Spring Integration, but I have deployed the application in OpenShift, but it is not looking for the FTP files.
For example:
In local FileReadingMessageSource is getting invoked
[task-scheduler-5] o.s.i.file.FileReadingMessageSource : Created message: [GenericMessage [payload=file-temp\abcd.xml, headers={id=30e5289a-aba6-19db-1d81-3036fca251b0, timestamp=1464675579294}]]
But it is not invoked in OpenShift. Is there any special configuration required for it to work?
As per the Linux team, OpenShift is not supporting FTP Client and it is not possible to run FTP using Spring Integration in OpenShift.

How to obtain service credentials for a service instance created on IBM Bluemix without binding the instance to an application on Bluemix?

I have created a ClearDB MySQL instance on IBM Bluemix. Can I see the credentials (hostname, username, password etc) without binding the instance to an application running on Bluemix ?
Thank you, Sandhya
It depends if the service provider implemented the Service Keys feature. If they have, you can generate new credentials by clicking on "Service Credentials" on the service dashboard page.
The ClearDB currently requires you to bind it to a Cloud Foundry application for service credentials.

ejabberd users autocreation/export from dovecot

I want ejabberd (ejabberd 14.12) to use Dovecot's table 'users' for authentication (which is done already) but keep all ejabberd's data in different mysql database.
Is there anything, like autocreation option? For example, if user was successfully authenticated via external script, create that user in ejabberd's database? Or I have to make this up by my own? Im new in ejabberd
For authentication, I have this in ejabberd.yml
auth_method: external
extauth_program: "/opt/ejabberd/bin/auth_mysql_dovecot.php"
Will this allow me to use odbc as back-end?
I went the simple way.. What I needed is a local replacement for gmail+google chat for corporate users:
Dovecot with mysql authentication
Roundcube with plugin converse.js
Ejabberd with external auth:
auth_method: external
extauth_program: "/opt/ejabberd/bin/auth_mysql_dovecot.php"
Here is my auth_mysql_dovecot.php script. It doesn't use SASL to connect to dovecot. Its just simply connecting to dovecot mysql database. Important: Dovecot password encryption MUST BE 'CRAM-MD5'. Sorry, its the third version of the script. I didn't put the notes, where did I steal the code
No any registration needed. Once users login to their roundcube, they automatically will be logged into to ejabberd. Similar to google chat. If they change their passwords for Dovecot/Roundcube, the password will be changed for ejabberd as well.
I just let ejabberd to use its own native database