[ 
https://issues.apache.org/jira/browse/JAMES-1703?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Henrick PUPIN closed JAMES-1703.
--------------------------------
    Resolution: Not A Bug

Hi, 
I've solved myself my issue that was a configuration problem.

I use 'uid' attribute for IdentityAttribute. My problem was to have filled the 
full email address (login@domain) in the uid field. SMTP and POP3 
authentication was working well with this configuration, not email validation.

The good configuration is (for an user/email : user@domain)
In AD : 
uid =  user

In UserRepository.xml
<xml>
 <repository name="LocalUsers" 
class="org.apache.james.user.ldap.ReadOnlyUsersLDAPRepository" 
[...]
userIdAttribute="uid">
    <UsersDomain>domain</UsersDomain>  
</repository>
</xml>

> Can't receive email with Ldap UserRepository
> --------------------------------------------
>
>                 Key: JAMES-1703
>                 URL: https://issues.apache.org/jira/browse/JAMES-1703
>             Project: James Server
>          Issue Type: Bug
>          Components: UsersStore & UsersRepository
>    Affects Versions: 3.0.0-beta5
>         Environment: Windows server 2008 R2, Java version 1.7.0_75, Microsoft 
> Windows Server AD-LDS
>            Reporter: Henrick PUPIN
>            Priority: Blocker
>
> When using an Ldap user repository, James Server fail to validate email as a 
> local user and throw the email to "adress-error" folder.
> First, I guess LDAP is correctly configured since I can successfully 
> authenticate to the mailbox in pop3 with my AD account. 
> Moreover, it works fine when I'm using jpa user repository.
> Here are some parts of my configs : 
> userrepository.xml
> <repository name="LocalUsers" 
> principal="CN=james_user,CN=Applications,CN=Annuaire,DC=MYORG,DC=COM" 
> credentials="secret" 
> class="org.apache.james.user.ldap.ReadOnlyUsersLDAPRepository" 
> ldapHost="LDAP://myldapserver:389" userBase="CN=Annuaire,DC=MYORG,DC=COM" 
> userIdAttribute="uid" userObjectClass="user" >
>   <UsersDomain>mydomain.com</UsersDomain>
>   <restriction memberAttribute="member">
>  <group>CN=Users,CN=Roles,CN=Annuaire,DC=MYORG,DC=COM</group>
>   </restriction>
> </repository>
> -----
> smtpserver.xml:
>   - authRequired = true
>   - verifyIdentity = false (if true, smtp connection is refused)
> I have 2 users on my LDAP, with email in uid and email LDAP attributes :
> - [email protected]
> - [email protected]
> I try to send an email from [email protected] to [email protected]
> My issue : James server don't find the user.
> Stacktrace : 
> INFO  17:57:58,339 | james.smtpserver | Id='32422052' User='' Connection 
> established from 10.1.2.249
> INFO  17:57:59,356 | james.smtpserver | Id='32422052' User='' Successfully 
> spooled mail Mail1457456279340-e62611b4-ee36-4ec8-bd30-347a8e0e79bb from 
> [email protected] on swl-stedev-bts4/10.1.1.1 for [[email protected]]
> [...]
> INFO  17:58:12,994 | james.mailetcontext | Storing mail 
> Mail1457456279340-e62611b4-ee36-4ec8-bd30-347a8e0e79bb in 
> file://var/mail/address-error/
> James also try to find a DSN from postmaster to user1 : this email also fail 
> into address-error.
> Moreover, I have two James server that communicates together. If I send an 
> email from my second server (that is configured with JPA userrepository), I 
> can receive the DSN failure with this message : 
> We were unable to deliver the attached message because of an error in the 
> mail server.
> Error message below:
> 550 - Requested action not taken: no such user here
> Is it a configuration problem or is there a real problem with LDAP connector ?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to