cancel
Showing results for 
Search instead for 
Did you mean: 

manually creating user in database

guestbcs
Champ in-the-making
Champ in-the-making
i'm testing alfresco 2.0 and there has been a problem that i'm not able to solve. my companies wants to be able to insert users into the database (not via the client) through another webapp. Is this possible? i tried manually inserting some entries to the database but it doesnt seem to work. i get username not found exception.

btw, i've configured CAS to work with alfresco using the novell chain filter method. So i will be loggin in using the CAS.

i'm using LDAP server  but my supervisor do not want me to import all the users into the alfresco and only create user through a webapp.

can this be done? is this advisable?
3 REPLIES 3

andy
Champ on-the-rise
Champ on-the-rise
Hi

You can not create stuff direct in the DB.

Can you use web services? If so, you should be able to do what you want.

Andy

guestbcs
Champ in-the-making
Champ in-the-making
If i used the NovellChainsRequestAuthenticationFilter and modified it like what  some of the people here did to become CASAuthenticationFilter and changed this

String authHdr = (String) req.getSession().getAttribute(CASFilter.CAS_FILTER_USER); 

and

 authComponent = (AuthenticationComponent) ctx.getBean("AuthenticationComponent");
        authService = (AuthenticationService) ctx.getBean("AuthenticationService");

to have the capital letter thingy.

after i made these changes, if i login via CAS using admin and i go to administration console, i wont be able to see the create user link. the isAlfrescoAuth returns false instead of true like what it used to.


did i left out anything?

andy
Champ on-the-rise
Champ on-the-rise
Hi

A basic user entry will be created automatically if the user logs in.


The only other way is to constrain your ldap query to pull in only the users you want.

People have done thier own code to sync from LDAP as users login.
More modifications to the filter ….

Andy