Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Discuss
  3. Can I use ldap to authenticate a debian (or whatever linux flavour) desktop login?

Can I use ldap to authenticate a debian (or whatever linux flavour) desktop login?

Scheduled Pinned Locked Moved Discuss
15 Posts 7 Posters 1.0k Views 7 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • robiR robi

    Check https://docs.cloudron.io/user-management/

    Search for Directory Server

    jdaviescoatesJ Offline
    jdaviescoatesJ Offline
    jdaviescoates
    wrote on last edited by jdaviescoates
    #5

    @robi said in Can I use ldap to autheticate a debian (or whatever linux flavour) desktop login?:

    Search for Directory Server

    You can link directly to that section: https://docs.cloudron.io/user-management/#directory-server

    I use Cloudron with Gandi & Hetzner

    1 Reply Last reply
    2
    • A Offline
      A Offline
      AartJansen
      wrote on last edited by AartJansen
      #6

      ldapsearch from the lan seems unable to find the server. does cloudron have a firewall blocking the port ?
      Where I specify the range that can access, is
      192.168.1.0/24 an acceptable format ?

      1 Reply Last reply
      0
      • robiR Offline
        robiR Offline
        robi
        wrote on last edited by
        #7

        I think that should work (if not use a few static IPs until it's sorted), but the docs could use an improvement with more exact examples of what is acceptable in the code.

        @girish can fix that!

        Conscious tech

        A 1 Reply Last reply
        2
        • robiR robi

          I think that should work (if not use a few static IPs until it's sorted), but the docs could use an improvement with more exact examples of what is acceptable in the code.

          @girish can fix that!

          A Offline
          A Offline
          AartJansen
          wrote on last edited by
          #8

          @robi Thanks! I took your advice and allowed a single ip, and it immediately worked.
          That will do for me, until someone comes back with the correct notation for an ip range.

          jdaviescoatesJ 1 Reply Last reply
          2
          • A AartJansen

            @robi Thanks! I took your advice and allowed a single ip, and it immediately worked.
            That will do for me, until someone comes back with the correct notation for an ip range.

            jdaviescoatesJ Offline
            jdaviescoatesJ Offline
            jdaviescoates
            wrote on last edited by
            #9

            @AartJansen and out of interest, after you've logged into the machine via LDAP, what happens when you try to login to an app? 🤔

            I use Cloudron with Gandi & Hetzner

            A fbartelsF 2 Replies Last reply
            0
            • jdaviescoatesJ jdaviescoates

              @AartJansen and out of interest, after you've logged into the machine via LDAP, what happens when you try to login to an app? 🤔

              A Offline
              A Offline
              AartJansen
              wrote on last edited by
              #10

              @jdaviescoates still working on that. I just have the command
              ldapsearch -x -b "ou=users,dc=cloudron" -D "cn=admin,ou=system,dc=cloudron" -W -H ldaps://my.domain 636 working from the client workstation

              1 Reply Last reply
              0
              • jdaviescoatesJ jdaviescoates

                @AartJansen and out of interest, after you've logged into the machine via LDAP, what happens when you try to login to an app? 🤔

                fbartelsF Offline
                fbartelsF Offline
                fbartels
                App Dev
                wrote on last edited by
                #11

                @jdaviescoates said in Can I use ldap to autheticate a debian (or whatever linux flavour) desktop login?:

                after you've logged into the machine via LDAP, what happens when you try to login to an app?

                Nothing will happen, as logging in via LDAP only validates your password at login, but does not give you a token that you could use to log into other applications.

                In a windows environment this is handled with Kerberos. You log into your desktop via activedirectory (ad for short, a kind of LDAP) and when logging into other applications the application verifies via Kerberos if you are allowed. Previous to Kerberos this was also done with ntlm.

                A 1 Reply Last reply
                3
                • fbartelsF fbartels

                  @jdaviescoates said in Can I use ldap to autheticate a debian (or whatever linux flavour) desktop login?:

                  after you've logged into the machine via LDAP, what happens when you try to login to an app?

                  Nothing will happen, as logging in via LDAP only validates your password at login, but does not give you a token that you could use to log into other applications.

                  In a windows environment this is handled with Kerberos. You log into your desktop via activedirectory (ad for short, a kind of LDAP) and when logging into other applications the application verifies via Kerberos if you are allowed. Previous to Kerberos this was also done with ntlm.

                  A Offline
                  A Offline
                  AartJansen
                  wrote on last edited by AartJansen
                  #12

                  @fbartels yes, of course. Haha, how did I forget that? I must be getting old.

                  I guess if I add kerebos server to the ubuntu / cloudron install, I am effectively going towards unsupported territory, and it wont achieve much?
                  do the dockerised apps need to be kerebos aware/integrated too ?

                  fbartelsF 1 Reply Last reply
                  1
                  • A AartJansen

                    @fbartels yes, of course. Haha, how did I forget that? I must be getting old.

                    I guess if I add kerebos server to the ubuntu / cloudron install, I am effectively going towards unsupported territory, and it wont achieve much?
                    do the dockerised apps need to be kerebos aware/integrated too ?

                    fbartelsF Offline
                    fbartelsF Offline
                    fbartels
                    App Dev
                    wrote on last edited by
                    #13

                    @AartJansen said in Can I use ldap to authenticate a debian (or whatever linux flavour) desktop login?:

                    do the dockerised apps need to be kerebos aware/integrated too ?

                    Kind of. Either the applications need to support it directly or you chain it to something else. There is native support for saml already for quite a while, but also openid can be used nowadays.

                    If you want to Kerberos compatibility I would rather start there, than trying to extend the (afaik intentionally simple) ldap server of Cloudron. Possible solutions could be https://www.freeipa.org/ or https://www.univention.com.

                    1 Reply Last reply
                    1
                    • jamesJ james referenced this topic
                    • C Offline
                      C Offline
                      charlesnw
                      wrote last edited by
                      #14

                      I would strongly recommend Univention as the authentication back end. I used that in the past (pre cloudron) for LDAP auth for everything. I migrated all my apps / data to Cloudron/OpenID/Oauth and am now re-deploying Univention for desktop auth.

                      Desktop users of my company will only need two passwords (cloudron/univention) but with Cloudron SSO, and they can stay (essentially) perm logged in with cookies, it's not a big deal. Only artists/engineers etc doing heavy desktop work will need Univention logins.

                      One other option I'm exploring is having Linux auth to keycloak...

                      https://github.com/kha7iq/kc-ssh-pam

                      1 Reply Last reply
                      1
                      • H Offline
                        H Offline
                        Hilt3323
                        wrote last edited by
                        #15

                        Yes, it's possible to authenticate desktop logins using LDAP on Debian or other Linux distributions. Using PAM (Pluggable Authentication Modules), the system can be configured to use LDAP credentials for login, and this can be extended to other services as well.

                        1 Reply Last reply
                        1
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Bookmarks
                        • Search