cancel
Showing results for 
Search instead for 
Did you mean: 

Spaces from LDAP

ivo_costa
Champ in-the-making
Champ in-the-making
Hi

I'm trying to find a way of using LDAP OU's to setup some basic organization spaces in Alfresco and OrgRoles to set the permissions… I guess I'll have to change the sync to ldap. Any Ideias on how should I do this??? or at least get something in the correct direction

thanks…
4 REPLIES 4

kbonnet
Champ in-the-making
Champ in-the-making
if you dont want to mess around with the synchronization and you need the groups anyway in Alfresco, you could consider making a behaviour which creates the space when the group is created. See the behaviour tutorial by Jeff Potts.

Koen

ivo_costa
Champ in-the-making
Champ in-the-making
Hi kbonnet

although the behaviour is a good ideia, it won't be really right for my problem.
problem is, that there will be multiple groups for each space. the "sys admin" thinks that it would be best to have the ldap structure beeing synced to alfresco folders together with the groups and the roles.

I'm no ldap expert, so I don't really know how It will work on ldap side… just that he expects alfresco to get the OU's in the form of folders and set permitions accordingly

Thanks

ivo_costa
Champ in-the-making
Champ in-the-making
Ok … a little more explaining

right now I'm importing groups and users from ldap… but besides those, there are other kind of info in there
there are a few "nodes" of objectType = OrganizationalUnit, that I need to get in order to create folders that represent them…
inside these, there are references to groups and users with their role in the space… so we get a folder for a few groups (editors, colaborators, etc.)

so I need to get all this information… my guess the best is at sync time.
I've been researching and I think that it is LDAPUserRegistry that does the calls to the ldap server on sync… This class already does the search for users and for groups depending on parameters, so I could in theory search for the objectTypes I need… But I don't think that it can be extended, and if it can, how…
I just can't find any bean reference on XML

please… any help will be appreciated

thanks again

ivo_costa
Champ in-the-making
Champ in-the-making
I was hable to use the ldap connection factory to implement the function I needed withing a Timedtask

I know that unfortunately this is not the best option, but It will have to do for now.
I had to copy the full bean definition from the alfresco's definitions and add the server config on the bean has I haven't found a way of getting that from the ldap config properties.