[xwiki-devs] ntlm with xwiki

arnaud adlz at netcourrier.com
Thu Nov 8 17:49:53 CET 2007


First of all Sorry for creating a new topic

thanks for your anwser Jerome.

but Actually i have seen this feature

i added jcifs and it works well
an other hand i have tested impletentetion for ldap its works too

but i want a transparent authentication 
so now the problem is :

i would like to not have form login
i saw in code that we can define our login page with this property in xwiki.cfg :
xwiki.authentication.loginpage (if null default is /bin/login/XWiki/XWikiLogin)

i've changed this property but no changes when template call

$xwiki.getURL("XWiki.XWikiLogin", "login", "xredirect=$logredir"))

i still got the same url : bin/login/XWiki/XWikiLogin? 


the purpose of that is log-in link goes to my servlet , then i do ntlm authentication (it already works), then i post user name to /xwiki/bin/loginsubmit/XWiki/XWikiLogin

in the same time i do my own version of authentification (get user info (name mail,etc...) from another ldap without test of password cos already done with ntlm)

  
So! how can i redirect log-in page ? thanks a lot

------------------------------------------------------------









Hi,

You can implement your own version of the
com.xpn.xwiki.user.api.XWikiAuthService interface.

There's already a LDAP impl existing (different from the XWiki default
one), so you can look over that too as an example.

Then, you must precise in the xwiki.cfg configuration file that you want
to use your own class, with something like

xwiki.authentication.authclass = com.mycompany.mypackage.MyXWikiAuthImpl

Regards,
Jerome.



More information about the devs mailing list