Re: [xwiki-users] LDAP on xwiki
Thanks for all this information. I'll try that ASAP, and I'll post results of my tests. Gaëtan Your XEN ICT Team - Ricardo Rodriguez a écrit : Gaëtan GUYODO wrote: I can test it with Active Directory, I'll do that asap. Question about java : the latest change is LDAPAuthenticater.java (47 kb) 18/jun/2007. How can I compile to have the jar file ? Hi, Gaëtan, Here you have the javac command to compile LDAPAuthenticater while working with the brand new 1.2 release. You won't get a jar, but a class file. javac -cp /Library/Tomcat/webapps/xwiki/WEB-INF/lib/xwiki-core-1.2.jar:/Library/Tomcat/webapps/xwiki/WEB-INF/lib/commons-lang-2.1.jar:/Library/Tomcat/webapps/xwiki/WEB-INF/lib/commons-logging-1.1.1.jar:/Library/Tomcat/webapps/xwiki/WEB-INF/lib/ldap-UNKNOWN.jar:/Library/Tomcat/webapps/xwiki/WEB-INF/lib/ldap-UNKNOWN.jar:/Library/Tomcat/webapps/xwiki/WEB-INF/lib/ldap.jar:/Library/Tomcat/webapps/xwiki/WEB-INF/lib/securityfilter-2.0.jar:/Library/Tomcat/webapps/xwiki/WEB-INF/classes LDAPAuthenticater.java It is supposed you are in the /xwiki/WEB-INF/classes/com/xpn/xwiki/ldap/authentication folder. And /Library/Tomcat/webapps is the web applications folder of your servlets container. You must modify these path accordingly or look for any other way of referencing this classes. All classes but Novell ldap.jar are included with XWiki distribution. You must also copy the classes folder from XWiki.zip (http://jira.xwiki.org/jira/secure/attachment/10851/XWiki.zip) in xwiki/WEB-INF directory. Then, overwrite the LDAPAuthenticater java code with the updated release. So far, it is the one you mentioned dated on June the 18th, 2007 ldap.jar can be obtained from http://developer.novell.com/wiki/index.php/Jldap I am now using this new class but have some problems while binding to my eDirectory server. No I have to trace the process in the server to see where does the problem arise. I will move this discussion to the JIRA-1079 issue. I think it is the right place to go on with this. I am sure the Building page contents the solution to many of my doubts so I have to keep trying to understand the whole building process. Cheers, Ricardo -- __ Gaëtan GUYODO Chargé de mission Centre Antipoison - Hôpital Fernand WIDAL 200, rue du faubourg St Denis 75475 PARIS Cedex 10 Tél: 01 40 05 49 63 / Fax: 01 40 05 48 56 __ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] LDAP on xwiki
Gaëtan GUYODO wrote: Thanks for all this information. I'll try that ASAP, and I'll post results of my tests. Gaëtan Great! I do think that it will better to move the discussion to http://jira.xwiki.org/jira/browse/XWIKI-1079, doesn't you? Cheers, Ricardo -- Ricardo Rodríguez Your XEN ICT Team ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] LDAP on xwiki
Gaëtan GUYODO wrote: Thanks for all this information. I'll try that ASAP, and I'll post results of my tests. Gaëtan I'm afraid I've added some noise to my previous answer. Sorry about that. 1. ldap-UNKNOWN.jar was referenced twice 2. ldap.jar includes the same Novell classes than ldap-UNKNOWN.jar. Some only one of them is required. I've compiled with one or the other without any problem. I don't know why the one included with XWiki is called ldap-UNKNOWN.jar. I will ask in the devs list. Best, Ricardo -- Ricardo Rodríguez Your XEN ICT Team ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] LDAP on xwiki
Gaëtan GUYODO wrote: I can test it with Active Directory, I'll do that asap. Question about java : the latest change is LDAPAuthenticater.java (47 kb) 18/jun/2007. How can I compile to have the jar file ? Hi, Gaëtan, Here you have the javac command to compile LDAPAuthenticater while working with the brand new 1.2 release. You won't get a jar, but a class file. javac -cp /Library/Tomcat/webapps/xwiki/WEB-INF/lib/xwiki-core-1.2.jar:/Library/Tomcat/webapps/xwiki/WEB-INF/lib/commons-lang-2.1.jar:/Library/Tomcat/webapps/xwiki/WEB-INF/lib/commons-logging-1.1.1.jar:/Library/Tomcat/webapps/xwiki/WEB-INF/lib/ldap-UNKNOWN.jar:/Library/Tomcat/webapps/xwiki/WEB-INF/lib/ldap-UNKNOWN.jar:/Library/Tomcat/webapps/xwiki/WEB-INF/lib/ldap.jar:/Library/Tomcat/webapps/xwiki/WEB-INF/lib/securityfilter-2.0.jar:/Library/Tomcat/webapps/xwiki/WEB-INF/classes LDAPAuthenticater.java It is supposed you are in the /xwiki/WEB-INF/classes/com/xpn/xwiki/ldap/authentication folder. And /Library/Tomcat/webapps is the web applications folder of your servlets container. You must modify these path accordingly or look for any other way of referencing this classes. All classes but Novell ldap.jar are included with XWiki distribution. You must also copy the classes folder from XWiki.zip (http://jira.xwiki.org/jira/secure/attachment/10851/XWiki.zip) in xwiki/WEB-INF directory. Then, overwrite the LDAPAuthenticater java code with the updated release. So far, it is the one you mentioned dated on June the 18th, 2007 ldap.jar can be obtained from http://developer.novell.com/wiki/index.php/Jldap I am now using this new class but have some problems while binding to my eDirectory server. No I have to trace the process in the server to see where does the problem arise. I will move this discussion to the JIRA-1079 issue. I think it is the right place to go on with this. I am sure the Building page contents the solution to many of my doubts so I have to keep trying to understand the whole building process. Cheers, Ricardo -- Ricardo Rodríguez Your XEN ICT Team ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] LDAP on xwiki
Gaëtan GUYODO wrote: I can test it with Active Directory, I'll do that asap. Question about java : the latest change is LDAPAuthenticater.java (47 kb) 18/jun/2007. How can I compile to have the jar file ? Hi all, I've managed to reference all the required classes but Cache. There is a Cache.class included in XWiki-1079, so I am guessing this is the class we must reference. All the others are included in jar files distributed with XWiki but ldap.jar coming from novell-jldap-devel-2007.10.12-1unix.zip. It can be downloaded from http://developer.novell.com/wiki/index.php/Jldap Here the error message I get when I run javac... sh-3.2# javac -cp /Library/Tomcat/webapps/xwiki/WEB-INF/lib/xwiki-core-1.2-rc-1.jar:/Library/Tomcat/webapps/xwiki/WEB-INF/lib/commons-lang-2.1.jar:/Library/Tomcat/webapps/xwiki/WEB-INF/lib/commons-logging-1.1.jar:/Library/Tomcat/webapps/xwiki/WEB-INF/lib/ldap-UNKNOWN.jar:/Library/Tomcat/webapps/xwiki/WEB-INF/lib/ldap-UNKNOWN.jar:/Library/Tomcat/webapps/xwiki/WEB-INF/lib/ldap.jar:/Library/Tomcat/webapps/xwiki/WEB-INF/lib/securityfilter-2.0.jar:/Library/Tomcat/webapps/xwiki/WEB-INF/classes/com/xpn/xwiki/ldap/authentication/cache.jar LDAPAuthenticater.java LDAPAuthenticater.java:61: cannot find symbol symbol : class Cache location: class com.xpn.xwiki.ldap.authentication.LDAPAuthenticater protected static CacheString, HashMapString,String cache = new CacheString, HashMapString,String(21800, 0); ^ LDAPAuthenticater.java:61: cannot find symbol symbol : class Cache location: class com.xpn.xwiki.ldap.authentication.LDAPAuthenticater protected static CacheString, HashMapString,String cache = new CacheString, HashMapString,String(21800, 0); ^ Note: LDAPAuthenticater.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: LDAPAuthenticater.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 2 errors sh-3.2# I've tried by creating a cache.jar file including only Cache.class, but it didn't work. As you can see, I am not a Java guru! Please, could anybody help with this issue? How must I reference Cache.class? We can not go ahead with XWiki without a fully functional LDAP authentication service. So I must find a way of helping with this. Any help will be welcome! Thanks. -- Ricardo Rodríguez Your XEN ICT Team ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] LDAP on xwiki
Hi, I am a new user of xwiki and new to LDAP too. I modified the xwiki.cfg and created a few testing entries in LDAP. Then, I can log in with LDAP users and superroot. But with LDAP users, I always see an error, which is You are not allowed to view this document or perform this action. I searched for solution for quite a while, and I found some others also suffer from the same issue. The only clue I get is MAYBE I need to import users from LDAP. But the import users from LDAP code from xwiki codebase give me another error. (If you want I can paste the complete error stack trace). So, could anyone advice on what I should do? Thanks a lot ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] LDAP on xwiki
Hi all, I created a user with the same user name as LDAP user but different password, when I log in again, it solves the problem. So the problem is no user group is assigned when LDAP user logged in, which I guess is being addressed (http://jira.xwiki.org/jira/browse/XWIKI-1079). Thanks for the effort. wyz wrote: Hi, I am a new user of xwiki and new to LDAP too. I modified the xwiki.cfg and created a few testing entries in LDAP. Then, I can log in with LDAP users and superroot. But with LDAP users, I always see an error, which is You are not allowed to view this document or perform this action. I searched for solution for quite a while, and I found some others also suffer from the same issue. The only clue I get is MAYBE I need to import users from LDAP. But the import users from LDAP code from xwiki codebase give me another error. (If you want I can paste the complete error stack trace). So, could anyone advice on what I should do? Thanks a lot ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] LDAP on xwiki
On Jan 11, 2008, at 12:47 PM, Gaëtan GUYODO wrote: That XWIKI-1079 patch will be included into the 1.2 final release ? No, that's way too late for that. I'd like to apply it for 1.3M1 but I need someone to verify the patch works for all cases. The comments in that issue seem to indicate there are things not finished in it. Thanks -Vincent Vincent Massol a écrit : Hi, Right now user groups have to be managed inside xwiki and cannot be delegated to LDAP. The XWIKI-1079 patch adds this new feature. -Vincent On Jan 11, 2008, at 11:44 AM, wyz wrote: Hi all, I created a user with the same user name as LDAP user but different password, when I log in again, it solves the problem. So the problem is no user group is assigned when LDAP user logged in, which I guess is being addressed (http://jira.xwiki.org/jira/browse/XWIKI-1079). Thanks for the effort. wyz wrote: Hi, I am a new user of xwiki and new to LDAP too. I modified the xwiki.cfg and created a few testing entries in LDAP. Then, I can log in with LDAP users and superroot. But with LDAP users, I always see an error, which is You are not allowed to view this document or perform this action. I searched for solution for quite a while, and I found some others also suffer from the same issue. The only clue I get is MAYBE I need to import users from LDAP. But the import users from LDAP code from xwiki codebase give me another error. (If you want I can paste the complete error stack trace). So, could anyone advice on what I should do? Thanks a lot ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- __ Gaëtan GUYODO Chargé de mission Centre Antipoison - Hôpital Fernand WIDAL 200, rue du faubourg St Denis 75475 PARIS Cedex 10 Tél: 01 40 05 49 63 / Fax: 01 40 05 48 56 __ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users