cancel
Showing results for 
Search instead for 
Did you mean: 

User database

andrepra
Champ in-the-making
Champ in-the-making
I need to integrate an external user database. I've read the wiki page about the security framework and i succesfully implemented my AuthenticationComponentImpl to perform authentication. My next step is to make the user from external database available in "manage space user" operation. To do this I have to implement the PersonService interface? If yes, exist an example to follow.

thanks
Andrew
9 REPLIES 9

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

This is correct. You may also want to implement the AuthorityService interface. The best examples for these are the current implementations. You will need to make sure that people exist in alfresco and match up with your user database uids.

As people are stored in the Alfresco repository it may be better to sychronise the person information from the auth database to Alfresco.
This is already done for LDAP in the enterprise version.

If you look at the forum you will see a discussion thread about moving the enterprise code in with the rest. If this happens, it will be the best way to go. You can write an extactor from your DB and wire it up.

Regards

Andy

why1525
Champ in-the-making
Champ in-the-making
Sorry for posting in this thread.
I found this thread that meet my problem here.

I want to link a web application with Alfresco. And the requirement is using the web application to login and then user can link to Alfresco without login again.

I read from here seem like Andrew have done it right?

I need some help in here if any expert can help me. I am a student doing Final Year Project research for a sponsoring company in Malaysia.

Thanks you in advanced.

Warmest Regards.
Edison Wang

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

Do you mean you have a web authentication layer which sets HTTP header entries and you want to use them for single sign on? If so you can pick these entries up and deal with them. See NTLMAuthenticationFilter and NovellIChainsHTTPRequestAuthenticationFilter for examples.

Regards

Andy

why1525
Champ in-the-making
Champ in-the-making
Hi,

thank you andy for replying me.

I have go through wiki and forums. seem like in order to let Alfresco link with my web application, the way is going use LDAP and NTML right?

I really not understand what is this two thing for. Although I already go through internet and my supervisor also dont know what is this.

My web application user data is store in MySQL database and Alfresco User data is store in file system. Is there anyway to link this two things without using LDAP or NTML?

I willing to learn but it is hard for me to go forward if lack of guiding.

Thanks you very much.

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

If you have your own user info then implement your own AuthenticationComponent and go to the database. You should be able to take the standard implementation as a guide.

You could use the acegi database authentication and wire this up to the existing acegi authentication component. You would also need a DAO if you want to update passwords and create new users etc.

Hope this helps

Regards

Andy

why1525
Champ in-the-making
Champ in-the-making
Hi Andy,

Thanks for your guide. I will going to try this now. Really appreciate your guide.

Thanks you.

why1525
Champ in-the-making
Champ in-the-making
Hi Andy,

Sorry for asking again.

I download the source from the SVN. After import into Eclipse and build a war file from there. After I deploy it in the Tomcat there and I could not found any ntlm-authentication-context.xml.samples. Is cos I refer to the Wiki there, NTML authentication need this xml to configure right?

Thanks you.

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

The examples are in the repository project in config/extension.

Regards

Andy

why1525
Champ in-the-making
Champ in-the-making
hi,

I got a question here.

I am a student current have not finish my degree. Now doing research project in a company. I have learned php, .NET and Java language. Now I have to link the company web application to Alfresco. I study a lot of information that the forum giving me and i still have a lot of thing not understand. Is it with my current level able to do this linkage? Currently the web application is using Java and JSP programming language. But seem like Alfresco using a lot of technology that I am not understand.

Thanks you.