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 ...
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!
--
View this message in context:
http://xwiki.475771.n2.nabble.com/Snipplet-Import-users-from-LDAP-failed-tp…
Sent from the XWiki- Users mailing list archive at
Nabble.com.