cancel
Showing results for 
Search instead for 
Did you mean: 

Missing folders and files in 5.0a?

entropicsinkhol
Champ in-the-making
Champ in-the-making
I have a clean install of 5.0a on MS Server 2012.  I went to set up my ldap settings, but I am missing a bunch of folders, specifically repository.properties and the ldap subsystem folders under C:\Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\subsystems\Authentication. 

I copied the same-named folders/files from the backup of a previously working 4.2e install to the same directories in 5.  They didn't work (could only log in as non-AD user account, like the builtin alfresco admin)

I also tried to copy/paste the combined settings of repository.properties and the ldap-ad-authentication.properties to the alfresco-global.properties file, to see if that worked. No luck.

Suggestions?

Here are my global properties




###############################
## Common Alfresco Properties #
###############################

dir.root=C:/Alfresco/alf_data

alfresco.context=alfresco
alfresco.host=127.0.0.1
alfresco.port=8081
alfresco.protocol=http

share.context=share
share.host=127.0.0.1
share.port=8081
share.protocol=http

### database connection properties ###
db.driver=org.postgresql.Driver
db.username=alfresco
db.password=Master123456
db.name=alfresco
db.url=jdbc:postgresql://localhost:5432/${db.name}

# The server mode. Set value here
# UNKNOWN | TEST | BACKUP | PRODUCTION
system.serverMode=UNKNOWN

### FTP Server Configuration ###
ftp.enabled=true
ftp.port=21

### RMI service ports ###
alfresco.rmi.services.port=50500
avm.rmi.service.port=0
avmsync.rmi.service.port=0
attribute.rmi.service.port=0
authentication.rmi.service.port=0
repo.rmi.service.port=0
action.rmi.service.port=0
deployment.rmi.service.port=0

### External executable locations ###
ooo.exe=C:/Alfresco/libreoffice/App/libreoffice/program/soffice.exe
ooo.enabled=true
ooo.port=8100
img.root=C:\\Alfresco\\imagemagick
img.coders=${img.root}\\modules\\coders
img.config=${img.root}\\config
img.gslib=${img.root}\\lib
img.exe=${img.root}\\convert.exe
swf.exe=C:/Alfresco/swftools/pdf2swf.exe
swf.languagedir=C:/Alfresco/swftools/japanese

jodconverter.enabled=false
jodconverter.officeHome=C:/Alfresco/libreoffice/App/libreoffice
jodconverter.portNumbers=8100

### Initial admin password ###
alfresco_user_store.adminpassword=ab9946b99230a077d10b37b94d91b1a6

### E-mail site invitation setting ###
notification.email.siteinvite=false

### License location ###
dir.license.external=C:/Alfresco

### Solr indexing ###
index.subsystem.name=solr
dir.keystore=${dir.root}/keystore
solr.port.ssl=8444

### BPM Engine ###
system.workflow.engine.jbpm.enabled=false

### Allow extended ResultSet processing
security.anyDenyDenies=false

### Authentication
authentication.chain=ldap-ad1:ldap-ad,alfrescoNtlm1:alfrescoNtlm

ldap.authentication.active=true
ldap.authentication.allowGuestLogin=false
ldap.authentication.userNameFormat=%s@wpshc
ldap.authentication.java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory
ldap.authentication.java.naming.provider.url=ldap://wpshc-dc02.wpshc:3268
ldap.authentication.java.naming.security.authentication=simple
ldap.authentication.escapeCommasInBind=false
ldap.authentication.escapeCommasInUid=false
ldap.authentication.defaultAdministratorUserNames=alfrescodocadmin,hgilchrist$,schindlert,rcole$,campeaus,dlachance$

ldap.synchronization.active=true
ldap.synchronization.java.naming.security.authentication=simple
ldap.synchronization.java.naming.security.principal=alfrescodocadmin@wpshc
ldap.synchronization.java.naming.security.credentials=Sc4n@lfr
ldap.synchronization.queryBatchSize=1000
ldap.synchronization.attributeBatchSize=1000
ldap.synchronization.groupQuery=(objectclass\=group)
ldap.synchronization.groupDifferentialQuery=(&(objectclass\=group)(!(whenChanged<\={0})))
ldap.synchronization.personQuery=(&(objectclass\=user)(userAccountControl\:1.2.840.113556.1.4.803\:\=512))
ldap.synchronization.personDifferentialQuery=(&(objectclass\=user)(userAccountControl\:1.2.840.113556.1.4.803\:\=512)(!(whenChanged<\={0})))
ldap.synchronization.groupSearchBase=CN=DocScanAlfresco,ou\=Domain\ Groups,dc=wpshc

# The user search base restricts the LDAP user query to a sub section of tree on the LDAP server.
#ldap.synchronization.userSearchBase=ou\=users,ou=\wpshc,dc=wpshc
ldap.synchronization.userSearchBase=CN=DocScanAlfresco,OU=Domain Groups,DC=wpshc
ldap.synchronization.modifyTimestampAttributeName=whenChanged
ldap.synchronization.timestampFormat=yyyyMMddHHmmss'.0Z'
ldap.synchronization.userIdAttributeName=sAMAccountName
ldap.synchronization.userFirstNameAttributeName=givenName
ldap.synchronization.userLastNameAttributeName=sn
ldap.synchronization.userEmailAttributeName=mail
ldap.synchronization.userOrganizationalIdAttributeName=company
ldap.synchronization.defaultHomeFolderProvider=largeHomeFolderProvider
ldap.synchronization.groupIdAttributeName=cn
ldap.synchronization.groupDisplayNameAttributeName=displayName
ldap.synchronization.groupType=group
ldap.synchronization.personType=user
ldap.synchronization.groupMemberAttributeName=member
ldap.synchronization.enableProgressEstimation=true
ldap.authentication.java.naming.read.timeout=0
 


#synchronization.synchronizeChangesOnly=true
#synchronization.import.cron=55 10 * * *
cifs.enabled=false    

15 REPLIES 15

cibex
Champ in-the-making
Champ in-the-making
Are we talking about this issue: https://issues.alfresco.com/jira/browse/ACE-2133
We are using 5.0.c (CE) and it seems not be fixed.
I have configured LDAP properties in alfresco-global.properties. Authentication works, synchonization not (givenNamen, sn, and mail are synchronized, all other attributes are missing).
Where can we configure additional attributes to be synced (former custom-ldap-context.xml)?
Thank you!

raurelian
Champ in-the-making
Champ in-the-making
Please note the original issue described: there are missing files and folders related to the default LDAP configuration which need to be copied but cannot be found. For example, the official Alfresco Community 5 documentation states:

Copy <configRootShare>/classes/alfresco/subsystems/Authentication/ldap/ldap-authentication.properties
to <classpathRoot>/alfresco/extension/subsystems/Authentication/ldap/ldap1/ldap-authentication.properties

This path does not exist: <configRootShare>/classes/alfresco/subsystems/Authentication/ldap/ldap-authentication.properties

The only folders that exist under <configRootShare>/classes/alfresco/subsystems/Authentication/ are:
alfrescoNtlm
external
kerberos
passthru

There is no LDAP and no such file as "ldap-authentication.properties"

I am using a Bitnami Linux VM image with Alfresco Community 5.0c

Any ideas on why these files would be missing?

Hi RAurelian,  In version 5.0 of Alfresco there are no folders that you want (LDAP) The settings for Ldap must place the file "alfresco-global.properties"
that should be in the path "/alfresco/tomcat/shared/classes"

Erick Rivera
www.ups.edu.ec

Hi Erick,

Thank you for this information!

The new build (alfresco 5 use Maven) doesn't come with the subsystems properties files, but you can still find them in the git repository, just do a google search for "alfresco git ldap-authentication.properties" and copy the content of the files the ldap subsystems directory, then you can configure your authentication outside of the alfresco-global.properties

joe_l3
Confirmed Champ
Confirmed Champ
Hi all,

starting from version 5, to get the ldap subsystem folders you need to extract the JAR file located in WEB-INF/lib/alfresco-repository-(ver).jar

Alfresco 5 packaging was changed due to code refactoring and integration with Maven. So some files used for edit in webapps/alfresco/WEB-INF/classes/alfresco/* are now moved in the compiled JARs.
According to the release notes, there's a known issue about this :
https://wiki.alfresco.com/wiki/Alfresco_Community_5.0.c_Release_Notes

I hove it will be useful
J