On 04/28/2010 12:19 AM, Colesnicov Eugen wrote:
I trying to use snipplet "Import users from LDAP" from code zone
(
http://code.xwiki.org/xwiki/bin/view/Snippets/ImportUsersFromLDAPSnippet),
but it failed with error:
Error number 4002 in 4: Error while parsing groovy page Sandbox.TestPage8
Wrapped Exception: startup failed: Script1.groovy: 20: unexpected token:
wikicreatelink @ line 20, column 45. + res.get("cn") + "
Line 20 is:
print ("" + res.get("cn") + "<a
class="wikicreatelink"
href="/xwiki/bin/edit...
As I see, this snipplet is too old, maybe now need to change something.
Unfortunatly, I am not a good programmer in a XWiki - I am a administrator.
Maybe someone can help me ...
The snippet got broken at some point, probably because somebody edited
it with the old WYSIWYG editor. The code was broken because the code was
replaced with the corresponding rendered HTML. I fixed it now, please
try again. Note that the snippet is still in syntax 1.0, don't forget to
change the syntax of the document where you'll put it.
I need to import users from LDAP. I already setup LDAP
Authentication (AD) -
all is greatly working: when new user logging - xwiki account automaticaly
was creating. But I need to import some users beforehand, because I need to
setup some rights in XWiki before user logged in.
Ideal solution for me - not import all users from LDAP - but only some of
them (or one by one) - filtered directly by SAMAccountName (filtered list of
usernames from AD).
Thanks in advice!
--
Sergiu Dumitriu
http://purl.org/net/sergiu/