• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    LDAP Plugins in FOG 1.3.0 RC 8

    Scheduled Pinned Locked Moved Unsolved
    FOG Problems
    6
    19
    5.4k
    Loading More Posts
    • 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.
    • george1421G
      george1421 Moderator @Steuve68
      last edited by george1421

      @Steuve68 said in LDAP Plugins in FOG 1.3.0 RC 8:

      Sorry for my bad english … i’m french.

      Oh I didn’t know you were French, you loose 50 points for that. 😉 (just kidding your engish is great)

      Yes lets see if the other developers can chime in. I can take a look at the code but I don’t have a clue on the programming part. I know what has to be in the query based on how other FLOSS applications work.

      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

      george1421G 1 Reply Last reply Reply Quote 0
      • davido38D
        davido38
        last edited by

        maybe it can help

        I have Glpi on the same server of fog with ldap auth on a 2008 srv and it works fine.

        0_1473868892609_GLPI_-Annuaire_LDAP-_Google_Chrome_2016-09-14_18-01-07.png

        george1421G 1 Reply Last reply Reply Quote 0
        • george1421G
          george1421 Moderator @davido38
          last edited by

          @davido38 Thank you this confirms my concept that its possible to make the ldap code work generally with AD. I’ve been looking at the ldap plugin code over my lunch hour, and I see what they are doing. There are several assumptions (i.e. your LDAP should be setup in a certain way) in the code to fill in the missing fields, which may not work in all situations.

          But, in concept the code should be able to be updated to support AD.

          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

          Tom ElliottT 1 Reply Last reply Reply Quote 1
          • Tom ElliottT
            Tom Elliott @george1421
            last edited by

            @george1421 totally agree

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

            Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

            Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

            george1421G x23piracyX 2 Replies Last reply Reply Quote 0
            • george1421G
              george1421 Moderator
              last edited by

              I’ve started a feature request here to document the process of reviewing the current LDAP plugin.
              https://forums.fogproject.org/topic/8575/extend-ldap-plugin-to-support-ad-authentication

              After reviewing the current ldap plugin there are only about 30 lines of code that is used for authentication. I believe that if I can add a few database fields to remove some of the assumptions that the code CAN be converted to support AD authentication.

              Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

              1 Reply Last reply Reply Quote 0
              • x23piracyX
                x23piracy @Tom Elliott
                last edited by

                @Tom-Elliott if this will work with AD it would be cool if a normal user can login into fog (webif or and pxe) to have to possibility to reset his computer (reimage).

                Regards X23

                ║▌║█║▌│║▌║▌█

                george1421G 1 Reply Last reply Reply Quote 0
                • george1421G
                  george1421 Moderator @x23piracy
                  last edited by

                  @x23piracy Are you currently using ldap authentication today? I think I found a good example code that I can upgrade the bits in the plugin. I just want to make sure the upgraded bits don’t break what you are using.

                  Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                  x23piracyX 1 Reply Last reply Reply Quote 0
                  • x23piracyX
                    x23piracy @george1421
                    last edited by

                    @george1421 i discard using it because it didn’t work as intended with Active Directory, Tom and me tried a lot but in the end it was not fully working like i wanted to.

                    the Main Problem is that we couldn’t get it to work with two LDAP definitions pointing to a deeper laying OU unit in the AD
                    What i wanted was to have one conneciton for normal users that can logon to fog and another one that allows all admins access with higher rights.

                    Not easy to explain what exactly went wrong but it seems that the current plugin cannot work with a specific OU.

                    Regards X23

                    ║▌║█║▌│║▌║▌█

                    george1421G 1 Reply Last reply Reply Quote 0
                    • george1421G
                      george1421 Moderator @x23piracy
                      last edited by

                      @x23piracy Great info, thank you.

                      The approach I’m looking at is to have user authentication and then if user is in AD group ( X ) then they are an admin, if they are in group ( Y ) then user, if they are not in either AD group then no access. Initially I was only thinking about a single group, but if there is admin and user levels in FOG then the dual group is the answer.

                      Your explanation also tells me why there was an admin field in the database. I hope to have time over the weekend to do a little coding to see if I can do a proof of concept test.

                      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                      Wayne WorkmanW 1 Reply Last reply Reply Quote 1
                      • Wayne WorkmanW
                        Wayne Workman @george1421
                        last edited by

                        @george1421 said in LDAP Plugins in FOG 1.3.0 RC 8:

                        Your explanation also tells me why there was an admin field in the database

                        It was setup to restrict someone to just fog mobile if they weren’t an admin. It’s a checkbox in user management, for a user. When checked, they can only access fog mobile I think. Or vice versa… or something.

                        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                        Daily Clean Installation Results:
                        https://fogtesting.fogproject.us/
                        FOG Reporting:
                        https://fog-external-reporting-results.fogproject.us/

                        1 Reply Last reply Reply Quote 0
                        • 1 / 1
                        • First post
                          Last post

                        250

                        Online

                        12.0k

                        Users

                        17.3k

                        Topics

                        155.2k

                        Posts
                        Copyright © 2012-2024 FOG Project