AnsweredAssumed Answered

Problème avec Alfresco 3.2 et l'authentification passthru

Question asked by neowdj on May 30, 2010
Bonjour,

Je viens d'installer alfresco sur une CentOS 5.5 et je voudrai monter un partage CIFS relier à un AD Windows 2003 entreprise. le problème c'est que il ne reconnais pas mon utilisateur 2003 mais bien l'utilisateur admin de alfresco

20:53:51,652 DEBUG [org.alfresco.smb.protocol.auth] NT Session setup NTLMSSP, MID=8, UID=0, PID=65279
20:53:51,653 DEBUG [org.alfresco.smb.protocol.auth] Using Write transaction
20:53:51,693 DEBUG [org.alfresco.smb.protocol.auth] NT Session setup NTLMSSP, MID=16, UID=0, PID=65279
20:53:51,710 DEBUG [org.alfresco.smb.protocol.auth] Using Write transaction
20:53:51,713 WARN  [org.alfresco.smb.protocol.auth] User does not exist, Administrateur
20:53:53,863 DEBUG [org.alfresco.smb.protocol.auth] NT Session setup NTLMSSP, MID=8, UID=0, PID=65279
20:53:53,863 DEBUG [org.alfresco.smb.protocol.auth] Using Write transaction
20:53:53,929 DEBUG [org.alfresco.smb.protocol.auth] NT Session setup NTLMSSP, MID=16, UID=0, PID=65279
20:53:53,956 DEBUG [org.alfresco.smb.protocol.auth] Using Write transaction
20:53:53,958 WARN  [org.alfresco.smb.protocol.auth] User does not exist, Administrateur
21:16:34,383 DEBUG [org.alfresco.smb.protocol.auth] NT Session setup NTLMSSP, MID=8, UID=0, PID=65279
21:16:34,385 DEBUG [org.alfresco.smb.protocol.auth] Using Write transaction
21:16:34,425 DEBUG [org.alfresco.smb.protocol.auth] NT Session setup NTLMSSP, MID=16, UID=0, PID=65279
21:16:34,427 DEBUG [org.alfresco.smb.protocol.auth] Using Write transaction
21:16:34,430 WARN  [org.alfresco.smb.protocol.auth] User does not exist, toto

quand je me logue sur http://192.168.10.107:8080/alfresco (ou share) la connexion se fait bien avec ce même user (toto ou Administrateur) idem en FTP


Statut :   Connexion à 192.168.10.107:21…
Statut :   Connexion établie, attente du message d'accueil…
Réponse :   220 FTP server ready
Commande :   USER toto
Réponse :   331 User name okay, need password for toto
Commande :   PASS ********
Réponse :   230 User logged in, proceed
Commande :   SYST
Réponse :   215 UNIX Type: Java FTP Server
Commande :   FEAT
Réponse :   211-Features supported
Réponse :    MDTM
Réponse :    SIZE
Réponse :    UTF8
Réponse :    MLST size*;modify*;create*;type*;unique*;perm*;media-type*;
Réponse :    MLSD
Réponse :   211 END
Commande :   OPTS UTF8 ON
Réponse :   200 OPTS UTF8 ON
Statut :   Connecté
Statut :   Récupération du contenu du dossier…
Commande :   PWD
Réponse :   257 "/"
Commande :   TYPE I
Réponse :   200 Command OK
Commande :   PASV
Réponse :   227 Entering Passive Mode (192,168,10,107,180,202)
Commande :   MLSD
Réponse :   150 File status okay, about to open data connection
Réponse :   226 Closing data connection
Statut :   Succès de la lecture du contenu du dossier


voici mon alfresco-global.properties

cifs.domain=TOTO

# Configure NTLM passthru to SAMBA Server
ntlm.authentication.sso.enabled=false
ntlm.authentication.authenticateCIFS=false
passthru.authentication.sso.enabled=false
passthru.authentication.allowGuestLogin=false
#alfresco.authentication.allowGuestLogin=true
#alfresco.authentication.authenticateCIFS=false

passthru.authentication.servers=192.168.10.103
passthru.authentication.domain=TOTO
passthru.authentication.useLocalServer=false
passthru.authentication.defaultAdministratorUserNames=Administrateur
passthru.authentication.connectTimeout=5000
passthru.authentication.offlineCheckInterval=300
passthru.authentication.protocolOrder=TCPIP,NETBIOS
passthru.authentication.authenticateCIFS=true
passthru.authentication.authenticateFTP=true
#ntlm.authentication.sso.enabled=true
#ntlm.authentication.mapUnknownUserToGuest=false
cifs.Server.Name=alfresco
cifs.ipv6.enabled=false
cifs.tcpipSMB.port=1445
cifs.netBIOSSMB.namePort=1137
cifs.netBIOSSMB.datagramPort=1138
cifs.netBIOSSMB.sessionPort=1139

et mon ldap-ad-authentication.properties

# This flag enables use of this LDAP subsystem for authentication. It may be
# that this subsytem should only be used for synchronization, in which case
# this flag should be set to false.
ldap.authentication.active=true

#
# This properties file brings together the common options for LDAP authentication rather than editing the bean definitions
#
ldap.authentication.allowGuestLogin=true

# How to map the user id entered by the user to taht passed through to LDAP
# In Active Directory, this can either be the user principal name (UPN) or DN.
# UPNs are in the form <sAMAccountName>@domain and are held in the userPrincipalName attribute of a user
ldap.authentication.userNameFormat=%s@toto.local

# The LDAP context factory to use
ldap.authentication.java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory

# The URL to connect to the LDAP server
ldap.authentication.java.naming.provider.url=ldap://uranus.toto.local:389

# The authentication mechanism to use
ldap.authentication.java.naming.security.authentication=simple

# Escape commas entered by the user at bind time
# Useful when using simple authentication and the CN is part of the DN and contains commas
ldap.authentication.escapeCommasInBind=false

# Escape commas entered by the user when setting the authenticated user
# Useful when using simple authentication and the CN is part of the DN and contains commas, and the escaped \, is
# pulled in as part of an LDAP sync
# If this option is set to true it will break the default home folder provider as space names can not contain \
ldap.authentication.escapeCommasInUid=false

# Comma separated list of user names who should be considered administrators by default
ldap.authentication.defaultAdministratorUserNames=Administrateur

# This flag enables use of this LDAP subsystem for user and group
# synchronization. It may be that this subsytem should only be used for
# authentication, in which case this flag should be set to false.
ldap.synchronization.active=true

# The default principal to bind with (only used for LDAP sync). This should be a UPN or DN
ldap.synchronization.java.naming.security.principal=alfrescocifs@toto.local

# The password for the default principal (only used for LDAP sync)
ldap.synchronization.java.naming.security.credentials=********************

# If positive, this property indicates that RFC 2696 paged results should be
# used to split query results into batches of the specified size. This
# overcomes any size limits imposed by the LDAP server.
ldap.synchronization.queryBatchSize=1000

# If positive, this property indicates that range retrieval should be used to fetch
# multi-valued attributes (such as member) in batches of the specified size.
# Overcomes any size limits imposed by Active Directory.       
ldap.synchronization.attributeBatchSize=1000

# The query to select all objects that represent the groups to import.
ldap.synchronization.groupQuery=(objectclass\=group)

# The query to select objects that represent the groups to import that have changed since a certain time.
ldap.synchronization.groupDifferentialQuery=(&(objectclass\=group)(!(modifyTimestamp<\={0})))

# The query to select all objects that represent the users to import.
ldap.synchronization.personQuery=(&(objectclass\=user)(userAccountControl\:1.2.840.113556.1.4.803\:\=512))

# The query to select objects that represent the users to import that have changed since a certain time.
ldap.synchronization.personDifferentialQuery=(&(objectclass\=user)(userAccountControl\:1.2.840.113556.1.4.803\:\=512)(!(modifyTimestamp<\={0})))

# The group search base restricts the LDAP group query to a sub section of tree on the LDAP server.
ldap.synchronization.groupSearchBase=cn\=Users,dc=toto,dc=local

# The user search base restricts the LDAP user query to a sub section of tree on the LDAP server.
ldap.synchronization.userSearchBase=ou\=Users.Resident,dc=toto,dc=local

# The name of the operational attribute recording the last update time for a group or user.
ldap.synchronization.modifyTimestampAttributeName=modifyTimestamp

# The timestamp format. Unfortunately, this varies between directory servers.
ldap.synchronization.timestampFormat=yyyyMMddHHmmss'.0Z'

# The attribute name on people objects found in LDAP to use as the uid in Alfresco
ldap.synchronization.userIdAttributeName=sAMAccountName

# The attribute on person objects in LDAP to map to the first name property in Alfresco
ldap.synchronization.userFirstNameAttributeName=givenName

# The attribute on person objects in LDAP to map to the last name property in Alfresco
ldap.synchronization.userLastNameAttributeName=sn

# The attribute on person objects in LDAP to map to the email property in Alfresco
ldap.synchronization.userEmailAttributeName=mail

# The attribute on person objects in LDAP to map to the organizational id  property in Alfresco
ldap.synchronization.userOrganizationalIdAttributeName=company

# The default home folder provider to use for people created via LDAP import
ldap.synchronization.defaultHomeFolderProvider=userHomesHomeFolderProvider

# The attribute on LDAP group objects to map to the authority name property in Alfresco
ldap.synchronization.groupIdAttributeName=cn

# The attribute on LDAP group objects to map to the authority display name property in Alfresco
ldap.synchronization.groupDisplayNameAttributeName=displayName

# The group type in LDAP
ldap.synchronization.groupType=group

# The person type in LDAP
ldap.synchronization.personType=user

# The attribute in LDAP on group objects that defines the DN for its members
ldap.synchronization.groupMemberAttributeName=member

# If true progress estimation is enabled. When enabled, the user query has to be run twice in order to count entries.
ldap.synchronization.enableProgressEstimation=true

j'ai cherché une bonne partie de la journée. Si vous avez une idée je suis preneur


Merci par avance

Neowdj

Outcomes