This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

[7.404] authentication with openldap group membership

Hi.

I want to allow members of the openLDAP group "remoteusers" to use smtp relaying.

So I have defined an authentication backend LDAP based on uid which works fine,
meaning password checking works.

Now I configured Mail-Relaying "Allow authenticated relaying" with an allowed group
"remotegroup".

The problem is the definition of this group.
So we go to Users-Groups, add a new group "remotegroup".

group type backend membership, backend LDAP.

When I omit "Check an LDAP attribute", every user with valid credentials is accepted,
I suppose this is the intended behaviour, cause the user is proven as member of the
backend.

But I want to restrict the usage to users belonging to LDAP group "remoteusers".

The attribute check I can define in the group definition intends to check if the
user has a attribute with a certain value in LDAP.

I could not verify this working, even with a very simple attribute as Givenname.

I could see the LDAP query in wireshark with the expected result, but group
membership was never recognised.
What may be wrong, if attribute is "givenName" and value "Paul"?

But: this mechanism would only works if the group membership can be checked
with an attribute in the user object, such as "memberOf" or "GroupMembership" from
the help example.

But what, if membership is stored in LDAP in a different way?
I have an OU=users and an OU=groups

And only the group object lists the members of the group, with an attribute
memberUid.

Any suggestion how I could check in this scenario the group membership in LDAP
backend?

Best regards

Paul


This thread was automatically locked due to age.
Parents
  • Paul, if you search these forums, I think you'll find that OpenLDAP is not supported as is Microsoft LDAP.  I also recall that this was to be fixed in V7.5, but I haven't seen the subject addressed in posts by beta testers.

    Perhaps, one of the beta testers with OpenLDAP will see this thread and comment.

    hHeers - Bob
     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
Reply
  • Paul, if you search these forums, I think you'll find that OpenLDAP is not supported as is Microsoft LDAP.  I also recall that this was to be fixed in V7.5, but I haven't seen the subject addressed in posts by beta testers.

    Perhaps, one of the beta testers with OpenLDAP will see this thread and comment.

    hHeers - Bob
     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
Children
No Data