Hi, Abhinav, This section may help you select the right authentication type for your deployment: http://docs.marklogic.com/guide/security/authentication#chapter. Avoid "application-level" when you'd like MarkLogic to authenticate the user.
If you were to set your HTTP app server to "digest", MarkLogic will prompt you the user for their credentials. When you do this, do the credentials work? I'm guessing not and that you'll want to reset the user's password in MarkLogic, or simplify it to make sure some character isn't interfering. I think this got me once, but can't recall for sure. Now take that to the XDBC app server. It too can be set to "digest". On all app server types, one can use "digestbasic" when willing to have an unencrypted password sent over the network when the encrypted one doesn't work. From within Java, using the XCC library, how are you attempting to use the credentials (e.g., one of the ContentSourceFactory.newContentSource() signatures)? If the app server's privilege setting has a value, make sure one of the user's roles is also granted that privilege. To temporarily remove this as a factor, clear this setting until you're able to authenticate. -Brent From: [email protected] [mailto:[email protected]] On Behalf Of abhinav mishra Sent: Thursday, May 16, 2013 3:22 AM To: [email protected] Subject: Re: [MarkLogic Dev General] XDMP:LOGIN(USER, PASS), not working when using through XDBC. Hi all, Need your help. I have a query related to xdmp:login() method. I am creating a java webservice which is connected to marklogic via XDBC app server,I get username and password from input request and i am trying to validate the user by using "xdmp:login(username,password)" but i am always getting "false" as a result even i am providing the correct username and password. When i am using the same username and password and running "xdmp:login(someuser,password)" in query console i am getting true, but via XDBC it gives "false" as a result. Can anyone help me to let me know whether "xdmp:login()" works with XDBC or not ? or it works with only HTTP servers where we can set "application-level" authentication? Thanks, Abhinav kumar mishra
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
