cancel
Showing results for 
Search instead for 
Did you mean: 

Map admin user

simon
Champ in-the-making
Champ in-the-making
Hi,

I was wondering if we could map the admin user to another user. We are using an OpenLDAP for authentication now: the local user database is unavailable and so is our admin user (this is fine).

I would like to map the admin user to some other LDAP user beacause I'm not going to create a global admin user in the LDAP. This account would be valid on all Alfresco systems and I need different ones for our dev, test en poduction environments.

I think I've seen some config rule where this could be changed bu I can no longer find it in the WIKI.
2 REPLIES 2

simon
Champ in-the-making
Champ in-the-making
No one?

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

The config is in:

config\alfresco\authority-services-context.xml

You need to over-ride the authorityService bean


    <bean id="authorityService" class="org.alfresco.repo.security.authority.AuthorityServiceImpl">
        <property name="authenticationComponent">
            <ref bean="authenticationComponent" />
        </property>
        <property name="personService">
            <ref bean="personService" />
        </property>
        <property name="nodeService">
            <ref bean="nodeService" />
        </property>
        <property name="authorityDAO">
            <ref bean="authorityDAO" />
        </property>
        <property name="permissionServiceSPI">
            <ref bean="permissionServiceImpl" />
        </property>
        <!–                                                                  –>
        <!– A list of users with admin rights.                               –>
        <!–                                                                  –>
        <!– If the security framework is case sensitive these values should  –>
        <!– be case sensitive user names. If the security framework is not   –>
        <!– case sensitive these values should be the lower-case user names. –>
        <!–                                                                  –>
        <!– By default this includes:                                        –>
        <!–    admin (the user name of default alfresco admin user)          –>
        <!–    administrator (the windows default admin user)                –>
        <!–                                                                  –>
        <!– This assumes that user names are not case sensitive.             –>
        <!–                                                                  –>
        <property name="adminUsers">
            <set>
             <value>admin</value>
             <value>administrator</value>
          </set>
        </property>
    </bean>

Regards

Andy