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

Specific OU's during host registration

Scheduled Pinned Locked Moved
General
3
13
1.8k
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.
  • C
    Chris Whiteley
    last edited by Mar 22, 2018, 11:20 PM

    Developers and fellow ridiculously smart people,

    I am trying to find a way to be able to create a question within the “Full Host Registration” to be able to ask what OU I would like to put it in, so this question has 2 parts to it.

    1. Can there be an option to create the option to choose an OU like you do an image or Snapin?
    2. Can we export some sort of data from our active directory that would populate the Database in FOG so that when using the ? feature, it would bring up our OU’s and fill the “Orginizational Unit (Blank for Default)” slot for the Host?

    I know this is a lot to ask for, but I am always looking for a way to save myself some time and this would be a HUGE time saver.

    Thanks,

    1 Reply Last reply Reply Quote 0
    • T
      Tom Elliott
      last edited by Mar 22, 2018, 11:29 PM

      I think this is easily possible and has been thought about by at least me and I’m sure other developers.

      The process seems confusing but ultimately it’s pretty simple.

      The simplest method, I think, would be to do something similar with location plugin but for OU’s. I specifically point out location plugin as it does have interaction with the init’s. Seeing as Active Directory is kind of a strong component of the functionality fog provides, I don’t think adding an OU Plugin checking system similar to Locations would be a bad idea.

      The only thing I’d like to see is the OU system be a plugin that takes over the OU structures currently available in fog. (FOG Global Settings -> Active Directory, and hosts/groups).

      I’d even say, likely, the simplest method to do this would be first to copy the current location plugin and rename it for OU’s.

      Of course the things that need to be well thought out:

      Database Tables (Likely ou and ouAssoc – just as a quick element).
      Structure of the OU table might be: <id, name, description, createdBy, createdTime, ou>
      Structure of the OU Assoc table might be: <id, hostID, ouID>

      Page would need to be able to add/edit, of course (default elements commonly available.

      If you need help with making this a realization, please don’t hesitate to hit me up. Just understand I’m working on getting 1.6.0 along with fixing bugs for 1.5.X series. I’d recommend making the plugin for 1.6 (which you can hit me up on chat so I can walk you through what to do). This is because it’s going to be quite a significant change from 1.5.x and earlier methods of doing things.

      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

      G 1 Reply Last reply Mar 22, 2018, 11:55 PM Reply Quote 0
      • C
        Chris Whiteley
        last edited by Mar 22, 2018, 11:33 PM

        I would love to chat with you and get help on this. I am not so savvy with too much being in the weeds of linux/database stuff, but I would certainly love to know how to do this. Any time you have I am more than willing to sit and chat.

        Thank you!

        G 1 Reply Last reply Mar 22, 2018, 11:42 PM Reply Quote 0
        • G
          george1421 Moderator @Chris Whiteley
          last edited by george1421 Mar 22, 2018, 5:44 PM Mar 22, 2018, 11:42 PM

          @chris-whiteley Lets look at this from another direction.

          Can the target OU be calculated during deployment? I have a complex OU structure [image][hwclass][site][domain] (ou=soe,ou=desktop,ou=nyc,dc=domain,dc=com) that is calculated during image deployment, and I use a post install script to update the unattend.xml file with the proper OU placement. I let the unattend.xml file connect the computer to AD and not FOG.

          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!

          C 1 Reply Last reply Mar 22, 2018, 11:52 PM Reply Quote 0
          • C
            Chris Whiteley @george1421
            last edited by Mar 22, 2018, 11:52 PM

            @george1421 I guess I could look at that as well. I just want the easiest way to do it I guess. (Even though it won’t be super easy 🙂 )

            G 1 Reply Last reply Mar 22, 2018, 11:56 PM Reply Quote 0
            • G
              george1421 Moderator @Tom Elliott
              last edited by Mar 22, 2018, 11:55 PM

              @tom-elliott Would this request be closer in design to the plugin for managing windows keys? I don’t know what was involved with that plugin, but on the surface it sounds like a similar task.

              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
              • G
                george1421 Moderator @Chris Whiteley
                last edited by Mar 22, 2018, 11:56 PM

                @chris-whiteley Well it depends on what you mean by easy? Everything has trade-offs.

                Can you provide what your AD structure looks like and how you might calculate the OU?

                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!

                C 1 Reply Last reply Mar 23, 2018, 12:27 AM Reply Quote 0
                • C
                  Chris Whiteley @george1421
                  last edited by Mar 23, 2018, 12:27 AM

                  @george1421 it is setup as location - floor - Place

                  G 1 Reply Last reply Mar 23, 2018, 12:35 AM Reply Quote 0
                  • G
                    george1421 Moderator @Chris Whiteley
                    last edited by george1421 Mar 22, 2018, 6:36 PM Mar 23, 2018, 12:35 AM

                    @chris-whiteley

                    If we were to parse this, location might site? If so does each site have its own IP address range?

                    What about floor, what is unique about the floor?

                    The same for place?

                    The idea here is to find something unique about each specific OU.

                    I guess a logical question might be how many OUs are we talking about?

                    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!

                    C 1 Reply Last reply Mar 23, 2018, 2:27 AM Reply Quote 0
                    • T
                      Tom Elliott
                      last edited by Mar 23, 2018, 12:46 AM

                      So I finished making the plugin for 1.6.

                      I haven’t tested it, but that’s why I love the FOG Community.

                      I’d ask you to switch to the 1.6 branch, but it’s in heavy development and many things likely do not work as expected. My work on the new plugin should make sure things are operationally capable based on looking over everything.

                      Essentially I just added a hook for the hostname changer when it gets checked from the client. The hook is then used in the OU plugin to alter the host adou field based on the associated host’s OU.

                      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

                      1 Reply Last reply Reply Quote 0
                      • T
                        Tom Elliott
                        last edited by Mar 23, 2018, 12:47 AM

                        I also have to build new init’s to take into account the ou stuff during registration.

                        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

                        C 1 Reply Last reply Mar 23, 2018, 2:31 AM Reply Quote 0
                        • C
                          Chris Whiteley @george1421
                          last edited by Mar 23, 2018, 2:27 AM

                          @george1421 each site currently doesn’t have its own subnet. It will change. It is company name: contoso.com -> Location of office, California -> business office.

                          Something like that.

                          1 Reply Last reply Reply Quote 0
                          • C
                            Chris Whiteley @Tom Elliott
                            last edited by Mar 23, 2018, 2:31 AM

                            @tom-elliott thank you so much! You are a rockstar. I look forward to 1.6!

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

                            129

                            Online

                            12.2k

                            Users

                            17.3k

                            Topics

                            155.4k

                            Posts
                            Copyright © 2012-2024 FOG Project