[xwiki-users] Domain name in address bar changed to IP address when you 'Edit' a page
Hello community, I'm not sure if this is a bug, or a feature, but the behavior is puzzling to me. My company has set our XWiki site on a domain name, which is working perfectly for us. As you browse through the website, the domain name is always present in the address bar and does not reveal the IP address of the server. However, when a user elects to 'Edit' a page, they are then transferred to the editor they chose (Wiki/Wysiwyg/objects/etc.), and when they are transferred, the domain name in the address bar is replaced with the IP address. This behavior is frustrating as we would like to keep the IP address of the server private, so the users are not privy to that information. Has anybody else experienced this behavior? And, is there a way to avoid or change this? Also, I've noticed that all links generated by XWiki use the IP address of the server machine as well. For instance, when you hover over any of the links generated by the XWiki rendering engine, the address can be seen by the user in the bottom left hand corner in the information panel, and they always use the IP address. This again defeats the purpose of using a domain name. Is there a way to change this also? Thanks in advance -- View this message in context: http://n2.nabble.com/Domain-name-in-address-bar-changed-to-IP-address-when-you-%27Edit%27-a-page-tp1480596p1480596.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Really stuck on registration form
Many thanks for your replies Sergiu - and going through code with toothpick now! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Edward Laptop Sent: 07 November 2008 14:59 To: XWiki Users Subject: [xwiki-users] Really stuck on registration form Please help! Have to edit the registration. I have added Xwiki registration and started off by copying registerinline.vm into it, and removing the outer if clause I have added several properties to the xwikiuser class, and by looking at the code in registration have got the new fields in. I have added the new fields to the profile pages too. When I register a new user and go to their profile all the new fields are blank - they display their boxes, but nothing in them. Have I missed a step somewhere??? Very happy to share code if needs be but I am really stuck! Could somebody please help! ___ 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
[xwiki-users] Problems w/ displaying HTML Entities as Plaintext
Hey everyone, While using XWiki version 1.1.2.5797 to document some software, the following problem occurred: I tried to insert snippets of a XSL file into a XWiki page using a {code} macro. As far as I know this macro treats input as plaintext, which would be exactly what I need. However, it turned out to work differently. It parsed HTML entities, so instead of displaying inputs like lt;!ENTITY Auml quot;amp;#196;quot;gt; exactly as they are, the HTML parts are parsed to !ENTITY Auml #196; Having failed with the {code} macro, I tried {pre} and \, but none of them worked. The same problem occurred when I used XWiki 1.7 which is running on a test server in the company I work for. Does anyone of you know how to make XWiki display HTML and XML entities as plaintext? I could not find anything about this problem in the documentation, the FAQ, or in the mailing list archive. Did I simply miss something? Since I read some threads about issues with the WYSIWYG editor, let me add that I use the XWiki editor, not the WYSIWYG editor. Any help would be greatly appreciated! Best regards, Sascha ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Problems w/ displaying HTML Entities as Plaintext
Hi, I've just tried your example: {code} !ENTITY Auml #196 {code} And it worked well: http://playground.xwiki.org/xwiki/bin/view/Test/VMA (note: this link will be reset tomorrow but just edit the page and copy the input to recreate it) Thanks -Vincent On Nov 10, 2008, at 5:03 PM, [EMAIL PROTECTED] wrote: Hey everyone, While using XWiki version 1.1.2.5797 to document some software, the following problem occurred: I tried to insert snippets of a XSL file into a XWiki page using a {code} macro. As far as I know this macro treats input as plaintext, which would be exactly what I need. However, it turned out to work differently. It parsed HTML entities, so instead of displaying inputs like lt;!ENTITY Auml quot;amp;#196;quot;gt; exactly as they are, the HTML parts are parsed to !ENTITY Auml #196; Having failed with the {code} macro, I tried {pre} and \, but none of them worked. The same problem occurred when I used XWiki 1.7 which is running on a test server in the company I work for. Does anyone of you know how to make XWiki display HTML and XML entities as plaintext? I could not find anything about this problem in the documentation, the FAQ, or in the mailing list archive. Did I simply miss something? Since I read some threads about issues with the WYSIWYG editor, let me add that I use the XWiki editor, not the WYSIWYG editor. Any help would be greatly appreciated! Best regards, Sascha ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Problems w/ displaying HTML Entities as Plaintext
On Nov 10, 2008, at 5:39 PM, Sergiu Dumitriu wrote: Vincent Massol wrote: Hi, I've just tried your example: {code} !ENTITY Auml #196 {code} No, that's not the problem. He tried to enter: {code} lt;!ENTITY Auml quot;amp;#196;quot;gt; {code} which was displayed as !ENTITY Auml #196 and not as lt;!ENTITY Auml quot;amp;#196;quot;gt; Which means that we do escape and , but no . Do we want that? Is it something all users want and need? I'll be -1 for changing this, since it will break non-UTF instances that need to print non-ISO-8859-1 symbols in a {code} block. Sascha, you could double-escape, like in: {code} amp;lt;!ENTITY Auml amp;quot;amp;amp;#196;amp;quot;amp;gt; {code} I know it's more hard work, but it's a working workaround. Another solution is to use XWiki 2.0 syntax (available since 1.7M1) which supports full escaping. See http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax Thanks -Vincent And it worked well: http://playground.xwiki.org/xwiki/bin/view/Test/VMA (note: this link will be reset tomorrow but just edit the page and copy the input to recreate it) Thanks -Vincent On Nov 10, 2008, at 5:03 PM, [EMAIL PROTECTED] wrote: Hey everyone, While using XWiki version 1.1.2.5797 to document some software, the following problem occurred: I tried to insert snippets of a XSL file into a XWiki page using a {code} macro. As far as I know this macro treats input as plaintext, which would be exactly what I need. However, it turned out to work differently. It parsed HTML entities, so instead of displaying inputs like lt;!ENTITY Auml quot;amp;#196;quot;gt; exactly as they are, the HTML parts are parsed to !ENTITY Auml #196; Having failed with the {code} macro, I tried {pre} and \, but none of them worked. The same problem occurred when I used XWiki 1.7 which is running on a test server in the company I work for. Does anyone of you know how to make XWiki display HTML and XML entities as plaintext? I could not find anything about this problem in the documentation, the FAQ, or in the mailing list archive. Did I simply miss something? Since I read some threads about issues with the WYSIWYG editor, let me add that I use the XWiki editor, not the WYSIWYG editor. Any help would be greatly appreciated! Best regards, Sascha ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Concurrent users
Yes I guess sessions would probably be the best way to distinguish between different computers in this case. I don't know much java or the way xwiki is structured - can anyone point me in the right direction? Thanks On Sun, Nov 9, 2008 at 1:45 PM, vmassol (via Nabble) [EMAIL PROTECTED][EMAIL PROTECTED] wrote: Hi, On Nov 9, 2008, at 1:05 PM, eggenheimer wrote: Does anyone know of some way to limit concurrent use of a user account? I need to prevent the same user account being used by more than one person at the same time. How would you want to do that? I'm asking since HTTP is stateless. You could check the IP address maybe (assuming the concurrent uses are not done on the same machine). I guess you could use a Servlet Session listener for example. Thanks -Vincent ___ users mailing list [EMAIL PROTECTED]http://n2.nabble.com/user/SendEmail.jtp?type=nodenode=1477252i=0 http://lists.xwiki.org/mailman/listinfo/users -- This email is a reply to your post @ http://n2.nabble.com/Concurrent-users-tp1477107p1477252.html You can reply by email or by visting the link above. -- View this message in context: http://n2.nabble.com/Concurrent-users-tp1477107p1480219.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Problems w/ displaying HTML Entities as Plaintext
Vincent Massol wrote: Hi, I've just tried your example: {code} !ENTITY Auml #196 {code} No, that's not the problem. He tried to enter: {code} lt;!ENTITY Auml quot;amp;#196;quot;gt; {code} which was displayed as !ENTITY Auml #196 and not as lt;!ENTITY Auml quot;amp;#196;quot;gt; Which means that we do escape and , but no . Do we want that? Is it something all users want and need? I'll be -1 for changing this, since it will break non-UTF instances that need to print non-ISO-8859-1 symbols in a {code} block. Sascha, you could double-escape, like in: {code} amp;lt;!ENTITY Auml amp;quot;amp;amp;#196;amp;quot;amp;gt; {code} I know it's more hard work, but it's a working workaround. And it worked well: http://playground.xwiki.org/xwiki/bin/view/Test/VMA (note: this link will be reset tomorrow but just edit the page and copy the input to recreate it) Thanks -Vincent On Nov 10, 2008, at 5:03 PM, [EMAIL PROTECTED] wrote: Hey everyone, While using XWiki version 1.1.2.5797 to document some software, the following problem occurred: I tried to insert snippets of a XSL file into a XWiki page using a {code} macro. As far as I know this macro treats input as plaintext, which would be exactly what I need. However, it turned out to work differently. It parsed HTML entities, so instead of displaying inputs like lt;!ENTITY Auml quot;amp;#196;quot;gt; exactly as they are, the HTML parts are parsed to !ENTITY Auml #196; Having failed with the {code} macro, I tried {pre} and \, but none of them worked. The same problem occurred when I used XWiki 1.7 which is running on a test server in the company I work for. Does anyone of you know how to make XWiki display HTML and XML entities as plaintext? I could not find anything about this problem in the documentation, the FAQ, or in the mailing list archive. Did I simply miss something? Since I read some threads about issues with the WYSIWYG editor, let me add that I use the XWiki editor, not the WYSIWYG editor. Any help would be greatly appreciated! Best regards, Sascha -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] New users and LDAP
Hi, I'm trying to implement xwiki for the first time in our environment. We have an OpenLDAP server that I would like to use for authentication. I have been able to get xwiki to authenticate via LDAP for users that already exist in the xwiki database, but there are a few things that still are not right. 1. I can not log in to xwiki unless the user already exists in the xwiki database. This would not be a problem (and in fact is probably prefered) except... 2. When xwiki is configured to use LDAP, I can not add a user to the database. I also can not change xwiki group membership or permissions for any user when xwiki is configured for LDAP. Everything related to users seems to be locked while xwiki is on LDAP. 3. Users can authenticate using their LDAP password or the password that is stored in the xwiki database. I know that has to do with the 'xwiki.authentication.ldap.trylocal=1' setting, but without that it, the login form gives no feedback as to why the login failed. ex. Wrong user name etc. Right now it seems to me that the only way for me to add a new user to xwiki would be to: 1. take xwiki off LDAP 2. add user to xwiki database 3. set permissions 4. put xwiki back on LDAP There has to be an easier way to do this. Some of the threads I've been reading indicate that users are automatically created when authenticated via LDAP. This would be fine with me as long as the default group had no permissions, and I could later assign the user to the appropriate group. I've included an excerpt from my xwiki.cfg file. Please let me know if I'm doing something wrong. Thanks. FYI my xwiki version number is 1.6.1.13621 --- Excerpt from xwiki.cfg: #- # LDAP #- #-# new LDAP authentication service xwiki.authentication.authclass=com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl #-# Turn LDAP authentication on - otherwise only XWiki authentication #-# 0: disable #-# 1: enable xwiki.authentication.ldap=1 #-# LDAP Server (Active Directory, eDirectory, OpenLDAP, etc.) xwiki.authentication.ldap.server=192.168.xxx.xxx xwiki.authentication.ldap.port=389 #-# LDAP login, empty = anonymous access, otherwise specify full dn #-# {0} is replaced with the username, {1} with the password xwiki.authentication.ldap.bind_DN=cn=manager,dc=[domain],dc=[TLD] xwiki.authentication.ldap.bind_pass=xxx #-# Force to check password after LDAP connection #-# 0: disable #-# 1: enable xwiki.authentication.ldap.validate_password=0 #-# only members of the following group will be verified in the LDAP #-# otherwise only users that are found after searching starting from the base_DN # xwiki.authentication.ldap.user_group=cn=developers,ou=groups,o=MegaNova,c=US #-# [Since 1.5RC1, XWikiLDAPAuthServiceImpl] #-# only users not member of the following group can autheticate # xwiki.authentication.ldap.exclude_group=cn=admin,ou=groups,o=MegaNova,c=US #-# base DN for searches xwiki.authentication.ldap.base_DN=ou=Users,dc=percipenz,dc=com #-# Specifies the LDAP attribute containing the identifier to be used as the XWiki name (default=cn) xwiki.authentication.ldap.UID_attr=uid #-# [Since 1.5M1, XWikiLDAPAuthServiceImpl] #-# Specifies the LDAP attribute containing the password to be used when xwiki.authentication.ldap.validate_password i$ # xwiki.authentication.ldap.password_field=userPassword #-# [Since 1.5M1, XWikiLDAPAuthServiceImpl] #-# The potential LDAP groups classes. Separated by commas. # xwiki.authentication.ldap.group_classes=group,groupOfNames,groupOfUniqueNames,dynamicGroup,dynamicGroupAux,groupWiseDi$ #-# [Since 1.5M1, XWikiLDAPAuthServiceImpl] #-# The potential names of the LDAP groups fields containings the members. Separated by commas. # xwiki.authentication.ldap.group_memberfields=member,uniqueMember #-# retrieve the following fields from LDAP and store them in the XWiki user object (xwiki-attribute=ldap-attribute) #-# ldap_dn=dn -- dn is set by class, caches dn in XWiki.user object for faster access xwiki.authentication.ldap.fields_mapping=last_name=sn,first_name=givenName,fullname=displayName,email=mail #-# [Since 1.3M2, XWikiLDAPAuthServiceImpl] #-# on every login update the mapped attributes from LDAP to XWiki otherwise this happens only once when the XWiki accou$ xwiki.authentication.ldap.update_user=1 #-# [Since 1.3M2, XWikiLDAPAuthServiceImpl] #-# mapps XWiki groups to LDAP groups, separator is | # xwiki.authentication.ldap.group_mapping=XWiki.XWikiAdminGroup=cn=AdminRole,ou=groups,o=MegaNova,c=US|\ # XWiki.Organisation=cn=testers,ou=groups,o=MegaNova,c=US #-# [Since 1.3M2, XWikiLDAPAuthServiceImpl] #-# time in s after which the list of members in a group is refreshed from LDAP (default=3600*6) # xwiki.authentication.ldap.groupcache_expiration=21800 #-#
Re: [xwiki-users] Concurrent users
On Mon, Nov 10, 2008 at 4:20 AM, eggenheimer [EMAIL PROTECTED] wrote: Yes I guess sessions would probably be the best way to distinguish between different computers in this case. I don't know much java or the way xwiki is structured - can anyone point me in the right direction? And now, for something completely different... For reasons of security/configuration/etc, I typically front Java-based web-apps with apache, and then redirect to Java via mod_proxy_ajp w/ ProxyPass /xwiki/ ajp://127.0.0.1:8009/xwiki/ Given such a configuration, I would consider looking into an external apache authentication and access control module that can provide you with the necessary limitations. One possibility is to use an external login mechanism in apache which generates a random number ID via cookie; for any subsequent accesses to the protected access URL, that ID/cookie which must be present before redirecting to xwiki via mod_proxy_ajp. This per-user cookie ID would be cleared if the given user logs out (via associated external login mechanism), and no other logins would be allowed until the 'latest-login-cookie' was cleared. Only incoming requests presenting the specific cookie/ID associated with the user will be passed on to mod_proxy_ajp and in-turn, java and Xwiki. http://www.frogdot.org/mod_auth_mda/ is a good module to accomplish such tasks: -- http://www.frogdot.org/logintools/pab/scheme1.gif This approach wouldn't care about IP address per-se. The user could start the transaction on a laptop plugged in to one network, disconnect, and continue on a different one. On the other hand, if the user walked over to a different computer, and didn't logout his last session, he couldn't log back in w/o either going back to his old computer and logging out, or requesting an administrator override. Niels http://nielsmayer.com ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users