Koozali.org: home of the SME Server

[SOLVED] LDAP authe remote server

Offline johnnyb

  • *
  • 6
  • +0/-0
[SOLVED] LDAP authe remote server
« on: January 07, 2014, 04:07:43 PM »
Hello,

I'm trying to setup an ldap authentification. I read this documentations :

http://wiki.contribs.org/LDAP_Authentication
http://wiki.contribs.org/LemonLDAP-NG

Installation is ok but i don't want local LDAP server just remote auth to an other ldap server.


Any idea ?

Thank you
« Last Edit: January 08, 2014, 07:17:24 PM by johnnyb »

Offline johnnyb

  • *
  • 6
  • +0/-0
Re: LDAP authe remote server
« Reply #1 on: January 08, 2014, 09:18:33 AM »
So to my mind, SME can't support full LDAP auth, i want to set auth on Centos layer but i think i will crash the SME layer

I'll be back to Postfix/Dovecot, SME needs more work

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: [UNRESOLVED] LDAP authe remote server
« Reply #2 on: January 08, 2014, 12:36:02 PM »
So to my mind, SME can't support full LDAP auth, i want to set auth on Centos layer but i think i will crash the SME layer

Hi

I think you misunderstood SME's aims.. it's something like SBS..

Quote
I'll be back to Postfix/Dovecot

ok..

Quote
SME needs more work

this is not true.. SME does very well what it is designed for..
it's true that you need to read carefully the documentation before judging..

in any case you are welcome here..

Offline mmccarn

  • *
  • 2,653
  • +10/-0
Re: [UNRESOLVED] LDAP authe remote server
« Reply #3 on: January 08, 2014, 12:58:37 PM »
...I'm trying to setup an ldap authentification. ...

For what?

For a specific web app?
For the SME web server?

It would take non-trivial effort customizing each of SME's user-specific services before you could simply have your SME use an external LDAP server for "everything".

At first guess, you'd need to customize the back-end for each of the following:
- Samba shares
- "User" ibays
- the /user-password panel
- qpsmtpd
- qmail
- dovecot
- pam(?)

... and when done:
- you'd be so customized that (probably) future SME updates wouldn't work on your system
- you'd *still* need  to configure ldap authentication independently for each new web app you might install (such as OwnCloud, Moodle, Gallery, Wordpress, etc).

Offline johnnyb

  • *
  • 6
  • +0/-0
Re: [UNRESOLVED] LDAP authe remote server
« Reply #4 on: January 08, 2014, 01:31:59 PM »
Hello,

Thank you for your answer

The goal is very simple :

I want to migrate my old Postfix to SME/Qmail. So i need that my users (50) could login with there usually login/passwd

So i want to SME IMAP/POP/SMTP check users authentication on my LDAP server. I don't want an ldap SME server, i just want to authenticate to a remote LDAP server.

Quote
it's true that you need to read carefully the documentation before judging..

I had search for several hours but no really good documentation, but i can help Contribs to setup a good LDAP auth doc.

Where is the documentation ? where is the LDAP doc backend ?

thank you

 
« Last Edit: January 08, 2014, 03:31:07 PM by johnnyb »

Offline johnnyb

  • *
  • 6
  • +0/-0
Re: [UNRESOLVED] LDAP authe remote server
« Reply #5 on: January 08, 2014, 07:16:52 PM »
@mmccarn

Thank you i understand, i have to setup qmail and dovecot LDAP remote auth

I there a way to contribute to documentation ?


Offline janet

  • *****
  • 4,812
  • +0/-0
Re: [UNRESOLVED] LDAP authe remote server
« Reply #6 on: January 08, 2014, 08:57:20 PM »
johnnyb

Quote
Where is the documentation ?

Look at the top of the Forums page, there are links to Manual, Wiki, Contribs, Howtos, FAQ etc.

Quote
where is the LDAP doc backend ?

In your forum user profile you can tick a box to request membership of the Wiki & Documentation team, after approval you will be able to edit the wiki pages & create new documents.

On the main Wiki page there is a Help link on top left hand side that explains how to use the Wiki, edit & create pages & formatting syntax etc.

Just ask here if you are unsure or get stuck.
IIRC there is a wiki sandbox you can experiment in first to get the feel of using the wiki.
I suggest you look at the formatting & syntax of existing documents & simply copy a whole document that is similar to what you want, & then edit to suit.

Using the wiki to create new documents is pretty easy really.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline johnnyb

  • *
  • 6
  • +0/-0
Re: [SOLVED] LDAP authe remote server
« Reply #7 on: January 08, 2014, 09:57:12 PM »
Hello janet,

Thank you very much for these informations

I'll try to participate to documentation


Offline janet

  • *****
  • 4,812
  • +0/-0
Re: [SOLVED] LDAP authe remote server
« Reply #8 on: January 08, 2014, 11:34:22 PM »
johnnyb

Actually a link to Contribs is not at the top of Forums, but you can see it in my forum signature & find it on the main wiki pages.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: [UNRESOLVED] LDAP authe remote server
« Reply #9 on: January 09, 2014, 04:21:40 PM »
So i want to SME IMAP/POP/SMTP check users authentication on my LDAP server. I don't want an ldap SME server, i just want to authenticate to a remote LDAP server.

No you don't. You don't just want authentication. You also want the SME server to have mail infrastructure for all those users - so you want mailboxes, home directories, etc.

SME server isn't designed that way. It is not a client system to some other system's set of users. It's an authoritative server, with its own inbuilt user list.

mmccarn has told you how many things would need to be modified to give you what you want.

If you really want to use SME server, the easiest way would be to export the userlist and passwords from your postfix system and set those users up on SME server.

Offline johnnyb

  • *
  • 6
  • +0/-0
Re: [SOLVED] LDAP authe remote server
« Reply #10 on: January 09, 2014, 04:50:23 PM »
Hello,

Thank you for your answer

I understand now why i can't use LDAP auth.

The best way is to import my LDAP database in the SME LDAP server ?

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: [SOLVED] LDAP authe remote server
« Reply #11 on: January 09, 2014, 06:43:38 PM »
The best way is to import my LDAP database in the SME LDAP server ?

I don't think so. Import the user data (including passwords) from your ldap database, but use it to create normal SME users, including storing the passwords in /etc/shadow. I'm not sure how exactly you'd do that - there's probably a tool you can use to insert the hashes.