Re: [Dspace-tech] Import LDAP users and groups
Thanks for the feedback. I have auto enroll setup and it work just fine. I'm going to look at the special groups in detail. Does anyone have any experience with 'special groups' before I dive-in? Anthony Avarca aava...@anl.gov 630.252.4940 On Wed, Sep 1, 2010 at 2:04 PM, Stuart Lewis wrote: > Hi Anthony, > >> I'm in the process of implementing dspace for a prof-of-concept >> project. Is it possible to import (auto enroll) a batch of eperson and >> groups? I will like to import 30+ users and 10+ groups from LDAP. > > It isn't possible to import users from LDAP, however DSpace has an ability to > create user accounts automatically the first time they log in via LDAP. This > is from the config file: > > # This will turn LDAP autoregistration on or off. With this > # on, a new EPerson object will be created for any user who > # successfully authenticates against the LDAP server when they > # first login. With this setting off, the user > # must first register to get an EPerson object by > # entering their ldap username and password and filling out > # the forms. > webui.ldap.autoregister = true > > This may help you achieve what you need. For groups, it is possible to extend > the 'special groups' functionality that allows users to be added to groups > dynamically each time they are log on. This could be based on LDAP group > membership, and if someone were to create a patch that enables this, I'm sure > it would make an excellent addition to DSpace. > > Thanks, > > > Stuart Lewis > IT Innovations Analyst and Developer > Te Tumu Herenga The University of Auckland Library > Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand > Ph: +64 (0)9 373 7599 x81928 > > -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
[Dspace-tech] Import LDAP users and groups
All, I'm in the process of implementing dspace for a prof-of-concept project. Is it possible to import (auto enroll) a batch of eperson and groups? I will like to import 30+ users and 10+ groups from LDAP. Anthony Avarca aava...@anl.gov 630.252.4940 -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] LDAP with DSpace
An update on this issue, we had the suggested modification and it resolved the issue. Users without an email specified in AD can auto login/register. Anthony Avarca aava...@anl.gov 630.252.4940 On Fri, May 7, 2010 at 1:09 PM, Avarca, Anthony wrote: > We are seeing a similar problem. Some of our AD accounts do not have an > email specified. We have the appropriate entries in the cfg file. Going to > try the approach suggested: > > Change: > > if ((ldap.ldapEmail!=null)&&(!ldap.ldapEmail.equals(""))) > > > to > > > if (ldap.ldapEmail == null) ldap.ldapEmail = ""; > if (true) > > > Anthony Avarca > aava...@anl.gov > 630.252.4940 > > > > On Mon, Apr 26, 2010 at 7:44 PM, Max McGrath wrote: > >> Hi Stuart - >> >> Thanks for clarifying the rebuild and redeploy. >> >> Unfortunately, still no luck. >> >> I think I'll just start working on populating the e-mail field in LDAP. >> >> Thanks for all your help! I really appreciate it! >> >> Max >> >> -- >> Max McGrath >> Asst. Network Admin/Systems Specialist >> Carthage College >> 262-552-5512 >> mmcgr...@carthage.edu >> >> >> On Mon, Apr 26, 2010 at 4:02 PM, Stuart Lewis wrote: >> >>> Hi Max, >>> >>> After making the change you need to re-build tomcat, and redeploy it. You >>> can do this by following steps 7, 8, and 9 in the installation guide: >>> >>> - http://www.dspace.org/1_6_0Documentation/ch03.html#N108B6 >>> >>> But at step 8, as this is not a new installation, you need to run 'ant >>> update' instead of 'ant fresh_install'. >>> >>> Thanks, >>> >>> >>> Stuart Lewis >>> IT Innovations Analyst and Developer >>> Te Tumu Herenga The University of Auckland Library >>> Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand >>> Ph: +64 (0)9 373 7599 x81928 >>> >>> >>> On 27/04/2010, at 8:57 AM, Max McGrath wrote: >>> >>> > Stuart - >>> > >>> > I made the change and then restarted Tomcat and it still is not working >>> for people that do not have their e-mail address in LDAP. >>> > >>> > Should I have done more than just restarting Tomcat? >>> > >>> > Thanks for all the help! >>> > -- >>> > Max McGrath >>> > Asst. Network Admin/Systems Specialist >>> > Carthage College >>> > 262-552-5512 >>> > mmcgr...@carthage.edu >>> > >>> > >>> > On Mon, Apr 26, 2010 at 3:46 PM, Stuart Lewis >>> wrote: >>> > Hi Max, >>> > >>> > Yes - that's right. >>> > >>> > Change: >>> > >>> > if ((ldap.ldapEmail!=null)&&(!ldap.ldapEmail.equals(""))) >>> > >>> > >>> > to >>> > >>> > >>> > if (ldap.ldapEmail == null) ldap.ldapEmail = ""; >>> > if (true) >>> > >>> > >>> > (I've added an extra line there to hopefully catch another error that >>> could occur.) >>> > >>> > Thanks, >>> > >>> > >>> > Stuart Lewis >>> > IT Innovations Analyst and Developer >>> > Te Tumu Herenga The University of Auckland Library >>> > Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand >>> > Ph: +64 (0)9 373 7599 x81928 >>> > >>> > >>> > >>> > On 27/04/2010, at 4:15 AM, Max McGrath wrote: >>> > >>> > > Hi Stuart - >>> > > >>> > > Here is the code I am looking at: >>> > > >>> > > if ((ldap.ldapEmail!=null)&&(!ldap.ldapEmail.equals(""))) You want me >>> to change this to if (true) and then leave everything else the same??? >>> > > { >>> > > try >>> > > { >>> > > eperson = >>> EPerson.findByEmail(context, ldap.ldapEmail); >>> > > if (eperson!=null) >>> > > { >>> > > log.info >>
Re: [Dspace-tech] LDAP with DSpace
We are seeing a similar problem. Some of our AD accounts do not have an email specified. We have the appropriate entries in the cfg file. Going to try the approach suggested: Change: if ((ldap.ldapEmail!=null)&&(!ldap.ldapEmail.equals(""))) to if (ldap.ldapEmail == null) ldap.ldapEmail = ""; if (true) Anthony Avarca aava...@anl.gov 630.252.4940 On Mon, Apr 26, 2010 at 7:44 PM, Max McGrath wrote: > Hi Stuart - > > Thanks for clarifying the rebuild and redeploy. > > Unfortunately, still no luck. > > I think I'll just start working on populating the e-mail field in LDAP. > > Thanks for all your help! I really appreciate it! > > Max > > -- > Max McGrath > Asst. Network Admin/Systems Specialist > Carthage College > 262-552-5512 > mmcgr...@carthage.edu > > > On Mon, Apr 26, 2010 at 4:02 PM, Stuart Lewis wrote: > >> Hi Max, >> >> After making the change you need to re-build tomcat, and redeploy it. You >> can do this by following steps 7, 8, and 9 in the installation guide: >> >> - http://www.dspace.org/1_6_0Documentation/ch03.html#N108B6 >> >> But at step 8, as this is not a new installation, you need to run 'ant >> update' instead of 'ant fresh_install'. >> >> Thanks, >> >> >> Stuart Lewis >> IT Innovations Analyst and Developer >> Te Tumu Herenga The University of Auckland Library >> Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand >> Ph: +64 (0)9 373 7599 x81928 >> >> >> On 27/04/2010, at 8:57 AM, Max McGrath wrote: >> >> > Stuart - >> > >> > I made the change and then restarted Tomcat and it still is not working >> for people that do not have their e-mail address in LDAP. >> > >> > Should I have done more than just restarting Tomcat? >> > >> > Thanks for all the help! >> > -- >> > Max McGrath >> > Asst. Network Admin/Systems Specialist >> > Carthage College >> > 262-552-5512 >> > mmcgr...@carthage.edu >> > >> > >> > On Mon, Apr 26, 2010 at 3:46 PM, Stuart Lewis >> wrote: >> > Hi Max, >> > >> > Yes - that's right. >> > >> > Change: >> > >> > if ((ldap.ldapEmail!=null)&&(!ldap.ldapEmail.equals(""))) >> > >> > >> > to >> > >> > >> > if (ldap.ldapEmail == null) ldap.ldapEmail = ""; >> > if (true) >> > >> > >> > (I've added an extra line there to hopefully catch another error that >> could occur.) >> > >> > Thanks, >> > >> > >> > Stuart Lewis >> > IT Innovations Analyst and Developer >> > Te Tumu Herenga The University of Auckland Library >> > Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand >> > Ph: +64 (0)9 373 7599 x81928 >> > >> > >> > >> > On 27/04/2010, at 4:15 AM, Max McGrath wrote: >> > >> > > Hi Stuart - >> > > >> > > Here is the code I am looking at: >> > > >> > > if ((ldap.ldapEmail!=null)&&(!ldap.ldapEmail.equals(""))) You want me >> to change this to if (true) and then leave everything else the same??? >> > > { >> > > try >> > > { >> > > eperson = >> EPerson.findByEmail(context, ldap.ldapEmail); >> > > if (eperson!=null) >> > > { >> > > log.info >> (LogManager.getHeader(context, >> > > >> "type=ldap-login", "type=ldap_but_already_email")); >> > > >> context.setIgnoreAuthorization(true); >> > > >> eperson.setNetid(netid.toLowerCase()); >> > > >> eperson.update(); >> > > >> context.commit(); >> > > >> context.setIgnoreAuthorization(false); >> > > >> context.setCurrentUser(eperson); >> > > return SUCCESS; >> > > } >> > > else >> > > { >> > > if >> (canSelfRegister(context, request, netid)) >> > > { >> > > // >> TEMPORARILY turn off authorisation >> > > try >> > > { >> > > >> context.setIgnoreAuthorization(true); >> > > >> eperson = EPerson.create(context); >> > > >> if ((ldap.ldapEmail != null) && (!ldap.ldapEmail.equals(""))) >> > > >> { >> > > >> eperson.setEmail(ldap.ldapEmail); >> > > >> } >> > > >> else >> > > >> { >> > > >> eperson.setEmail(netid + >> ConfigurationManager.getProperty("ldap.netid_email_domain")); >> > > >> } >> > > >> if ((ldap.ldapGivenName!=null) && (!ldap.ldapGivenName.equals(""))) >> > > >> { >> > > >> eperson.setFirstName(ldap.ldapGivenName); >> > > >> } >> > > >> if ((ldap.ldapSurname!=null) && (!ldap.ldapSurname.equals(""))) >> > > >> { >> > > >> eperson.setLastName(ldap.ldapSurname); >> > > >> } >> > > >> if ((ldap.ldapP
Re: [Dspace-tech] Compiling Dspace on Mac OS X [Error]
Thank you for your guidance, I was able to overcome this hurdle by placing the following environment variable: MAVEN_OPTS="-Xms1024M -Xmx1024M" Anthony Avarca aava...@anl.gov 630.252.4940 On Tue, Apr 20, 2010 at 6:17 PM, Peter Dietz wrote: > I imagine that that is already enough memory for that. However, I don't > know anything specific to the Mac server that would make that hungrier than > any other system. Perhaps you could check that the sun implementation of > java is installed on the mac. Sun's (Oracle's) jdk fares better than the > open jdk. > > Check out this thread, I found some potentially useful things to try. > http://www.mail-archive.com/us...@maven.apache.org/msg50655.html > > I would imagine the file to look into would be > [dspace-source]/dspace/pom.xml at around line 529. > Adding the argument to specify the memory to maven during the packaging. > > > > > > maven-assembly-plugin > 2.2-beta-1 > > -Xmx1024m > > src/assemble/assembly.xml > > > > > Lastly, see if it works if you specify the memory limit to be as much as > your system max. I do agree that it is unusual to need so much memory just > for compilation though. > > Peter Dietz > Systems Developer/Engineer > Ohio State University Libraries > > > > > On Tue, Apr 20, 2010 at 6:40 PM, Avarca, Anthony wrote: > >> java.lang.OutOfMemoryError: Java heap space > > > -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
[Dspace-tech] Compiling Dspace on Mac OS X [Error]
All, I'm trying to compile dspace 1.6 in Mac OS X 10.6.3 Server. My output is below. I have the $JAVA_OPTS = -Xmx1024M -Xms64M -Dfile.encoding=UTF-8 Can anyone provide assistance? bash-3.2$ mvn -e package + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] DSpace XML-UI (Manakin) [INFO] DSpace XML-UI (Manakin) :: Wing-Framework [INFO] DSpace Kernel :: API and Implementation [INFO] DSpace Solr Statistics Logging Client Library [INFO] DSpace XML-UI (Manakin) :: API and Core Aspects [INFO] DSpace UI :: Shared JS code [INFO] DSpace XML-UI (Manakin) :: Web Application Resources [INFO] DSpace Addon Modules [INFO] DSpace XML-UI (Manakin) :: Web Application [INFO] DSpace LNI [INFO] DSpace LNI :: Core Implementation [INFO] DSpace LNI :: Web Application Resources [INFO] DSpace LNI :: Web Application [INFO] DSpace OAI [INFO] DSpace OAI :: API and Implementation [INFO] DSpace OAI :: Web Application Resources [INFO] DSpace OAI :: Web Application [INFO] DSpace JSP-UI [INFO] DSpace JSP-UI :: API and Implementation [INFO] DSpace JSP-UI :: Web Application Resources [INFO] DSpace JSP-UI :: Web Application [INFO] DSpace SWORD [INFO] DSpace SWORD :: API and Implementation [INFO] DSpace SWORD :: Web Application Resources [INFO] DSpace SWORD :: Web Application [INFO] DSpace SOLR :: Web Application [INFO] DSpace LNI :: CLI Client Application [INFO] DSpace Assembly and Configuration [INFO] [INFO] Building DSpace XML-UI (Manakin) [INFO]task-segment: [package] [INFO] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] [INFO] Building DSpace XML-UI (Manakin) :: Wing-Framework [INFO]task-segment: [package] [INFO] [INFO] [resources:resources {execution: default-resources}] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /Users/dspace/Documents/dspace-1.6.0-src-release/dspace-xmlui/dspace-xmlui-wing/src/main/resources [INFO] [compiler:compile {execution: default-compile}] [INFO] Nothing to compile - all classes are up to date [INFO] [resources:testResources {execution: default-testResources}] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /Users/dspace/Documents/dspace-1.6.0-src-release/dspace-xmlui/dspace-xmlui-wing/src/test/resources [INFO] [compiler:testCompile {execution: default-testCompile}] [INFO] No sources to compile [INFO] [surefire:test {execution: default-test}] [INFO] No tests to run. [INFO] [jar:jar {execution: default-jar}] [INFO] [INFO] Building DSpace Kernel :: API and Implementation [INFO]task-segment: [package] [INFO] [INFO] [resources:resources {execution: default-resources}] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 3 resources [INFO] [compiler:compile {execution: default-compile}] [INFO] Compiling 337 source files to /Users/dspace/Documents/dspace-1.6.0-src-release/dspace-api/target/classes [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Compilation failure Failure executing javac, but could not parse the error: The system is out of resources. Consult the following stack trace for details. java.lang.OutOfMemoryError: Java heap space at com.sun.tools.javac.jvm.ClassReader.enterPackage(ClassReader.java:1976) at com.sun.tools.javac.jvm.ClassReader.packageExists(ClassReader.java:1967) at com.sun.tools.javac.comp.MemberEnter.complete(MemberEnter.java:949) at com.sun.tools.javac.code.Symbol.complete(Symbol.java:386) at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:758) at com.sun.tools.javac.comp.Enter.complete(Enter.java:451) at com.sun.tools.javac.comp.Enter.main(Enter.java:429) at com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:819) at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:727) at com.sun.tools.javac.main.Main.compile(Main.java:353) at com.sun.tools.javac.main.Main.compile(Main.java:279) at com.sun.tools.javac.main.Main.compile(Main.java:270) at com.sun.tools.javac.Main.compile(Main.java:87) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.plexus.compiler.j