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

    Changing Name works, Joining AD is not but was prior to upgrade

    Scheduled Pinned Locked Moved
    FOG Problems
    5
    26
    11.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.
    • JunkhackerJ
      Junkhacker Developer
      last edited by

      if your fog server can do as many things as you’ve said, the mysql is working fine. without it you never would have gotten logged in.
      here’s some info on customizing the boot menu [url]http://fogproject.org/forum/threads/fog-0-33b-edit-pxe-menu.10403/#post-26419[/url]
      to troubleshoot the domain joining issue, check the hosts fog service log file at c:\fog.log

      signature:
      Junkhacker
      We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

      1 Reply Last reply Reply Quote 0
      • Bill RiceB
        Bill Rice Testers
        last edited by

        Below is a direct copy of a pc that has never been in the domain and im trying to get it to join and also trying to install printer.
        You see all the log has as of today

        5/21/2014 1:20 PM FOG::PrinterManager Printer update was request from fog tray…
        5/21/2014 1:20 PM FOG::PrinterManager Management level = 0
        5/21/2014 1:20 PM FOG::PrinterManager This host is set to NO MANAGEMENT, we will exit now.
        5/21/2014 3:23 PM FOG::PrinterManager Printer update was request from fog tray…
        5/21/2014 3:23 PM FOG::PrinterManager Management level = 0
        5/21/2014 3:23 PM FOG::PrinterManager This host is set to NO MANAGEMENT, we will exit now.
        5/21/2014 3:24 PM FOG::PrinterManager Printer update was request from fog tray…
        5/21/2014 3:24 PM FOG::PrinterManager Error pulling printer list…
        5/21/2014 3:24 PM FOG::PrinterManager The remote server returned an error: (500) Internal Server Error.
        5/21/2014 3:24 PM FOG::PrinterManager at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)
        at System.Net.WebClient.DownloadString(Uri address)
        at FOG.PrinterManager.pullNewServerList()
        5/21/2014 3:24 PM FOG::PrinterManager Management level = 0
        5/21/2014 3:24 PM FOG::PrinterManager This host is set to NO MANAGEMENT, we will exit now.
        5/21/2014 3:24 PM FOG::PrinterManager Printer update was request from fog tray…
        5/21/2014 3:24 PM FOG::PrinterManager Error pulling printer list…
        5/21/2014 3:24 PM FOG::PrinterManager The remote server returned an error: (500) Internal Server Error.
        5/21/2014 3:24 PM FOG::PrinterManager at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)
        at System.Net.WebClient.DownloadString(Uri address)
        at FOG.PrinterManager.pullNewServerList()
        5/21/2014 3:24 PM FOG::PrinterManager Management level = 0
        5/21/2014 3:24 PM FOG::PrinterManager This host is set to NO MANAGEMENT, we will exit now.

        1 Reply Last reply Reply Quote 0
        • JunkhackerJ
          Junkhacker Developer
          last edited by

          have you checked your host service settings and global service settings to make sure they are both set to on?

          signature:
          Junkhacker
          We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

          1 Reply Last reply Reply Quote 0
          • Bill RiceB
            Bill Rice Testers
            last edited by

            [SIZE=4][B]Active Directory Defaults[/B][/SIZE]

            FOG_AD_DEFAULT_DOMAINNAME
            FOG_AD_DEFAULT_OU
            FOG_AD_DEFAULT_USER
            FOG_AD_DEFAULT_PASSWORD

            1 Reply Last reply Reply Quote 0
            • Bill RiceB
              Bill Rice Testers
              last edited by

              [SIZE=4][B]Active Directory Defaults[/B][/SIZE]

              FOG_AD_DEFAULT_DOMAINNAME My Domain.com
              FOG_AD_DEFAULT_OU (Blank) Using default OU Computers1
              FOG_AD_DEFAULT_USER Administrator (as per updated version only User name required)
              FOG_AD_DEFAULT_PASSWORD (Encrypted with fogcrypt)

              [SIZE=4][B]FOG Service - Client Updater[/B][/SIZE]

              FOG_SERVICE_CLIENTUPDATER_ENABLED
              (This is enabled)

              [SIZE=4][B]FOG Service - Host Register[/B][/SIZE]

              FOG_SERVICE_HOSTREGISTER_ENABLED (this is enabled)
              FOG_QUICKREG_MAX_PENDING_MACS (This Value = 4)
              FOG_QUICKREG_PENDING_MAC_FILTER (This value = Blank)

              [SIZE=4][B]FOG Service - Hostname Changer[/B][/SIZE]
              FOG_SERVICE_HOSTNAMECHANGER_ENABLED
              (This is Enabled)

              So now what I stll cant get it to join the domain, it will change the name no issue there but domain connection ?
              OS is Ubuntu 12.04 LTS
              Fog 1.0.1
              So I had an error log over 30 meg in size so it w9ould not allow me to upload it. can you puruse through this one with just a few entries and let me know what ya think. if you want the full log please tell me where to put it so you can get the entire file.
              Thanks

              [url=“/_imported_xf_attachments/0/818_New Text Document (5).txt?:”]New Text Document (5).txt[/url]

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

                The log that you have doesn’t specify anything about Host Joining to Domain.

                Are those values set to anything on your server?

                Is the Host enabled to add to domain?

                Is the FOG_AD_DEFAULT_USER set to DOMAIN\username or FOG_AD_DEFAULT_USER set to username?

                Is the Password encrypted?

                In 0.33 and up, we changed the FOG_AD_DEFAULT_USER not not require the domain at the heading and it will fail to run if the username specifies the domain.

                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
                • Bill RiceB
                  Bill Rice Testers
                  last edited by

                  Sorry Tom, Had to actually modify my post and supply the proper info… lol… hit submit to fast.

                  1 Reply Last reply Reply Quote 0
                  • Bill RiceB
                    Bill Rice Testers
                    last edited by

                    Tom,
                    Appreciate all of your hard work in keeping this software going and please pass along my sincerest thanks to the rest of the Dev’s and support staff… Excellent software… I also appreciate you taking the time to assist me with this issue… the low budget facility I work for heavily rely on this software since i introduced it several years ago… we have had our ups and downs trying to get windows deployments 🙂 however I have always been able to research a solution to almost any problems that have come up except for this.

                    what ever assistance you can provide Just let me know what exact files you need and Ill get them to you.
                    thanks

                    1 Reply Last reply Reply Quote 0
                    • N
                      naeren
                      last edited by

                      fog.log deletes itself when it gets to 10kb in size (quickly). Try stopping the FOG service, deleting fog.log, then starting the service. Check fog.log about a minute afterwards and you should see the error messages relating to the HostnameChanger.

                      I know to get it working for me, I had to change the global settings (to remove the domain from the username field) but that didn’t automatically change it for all my existing hosts. I added all my hosts to a group, and changed it through the group as well.

                      1 Reply Last reply Reply Quote 0
                      • Bill RiceB
                        Bill Rice Testers
                        last edited by

                        This is the log right after the restart of the fog service.

                        5/23/2014 8:43 AM FOG Service Engine Version: 3
                        5/23/2014 8:43 AM Starting all sub processes
                        5/23/2014 8:43 AM 14 modules loaded
                        5/23/2014 8:43 AM * Starting FOG.AutoLogOut
                        5/23/2014 8:43 AM * Starting FOG.SnapinClient
                        5/23/2014 8:43 AM * Starting FOG.DirCleaner
                        5/23/2014 8:43 AM * Starting FOG.DisplayManager
                        5/23/2014 8:43 AM * Starting FOG.GreenFog
                        5/23/2014 8:43 AM * Starting FOG.GUIWatcher
                        5/23/2014 8:43 AM FOG::GUIWatcher Starting GUI Watcher…
                        5/23/2014 8:43 AM FOG::DisplayManager Starting display manager process…
                        5/23/2014 8:43 AM FOG::GreenFog Sleeping for 39 seconds.
                        5/23/2014 8:43 AM FOG::AutoLogOut Starting process…
                        5/23/2014 8:43 AM FOG::ClientUpdater Sleeping for 494 seconds.
                        5/23/2014 8:43 AM * Starting FOG.HostRegister
                        5/23/2014 8:43 AM * Starting FOG.MODDebug
                        5/23/2014 8:43 AM FOG::MODDebug Start Called
                        5/23/2014 8:43 AM FOG::MODDebug Sleeping for 100 Seconds
                        5/23/2014 8:43 AM FOG::PrinterManager Starting interprocess communication process…
                        5/23/2014 8:43 AM * Starting FOG.SnapinClient
                        5/23/2014 8:43 AM FOG::HostnameChanger Starting hostname change process…
                        5/23/2014 8:43 AM FOG::HostnameChanger Yielding to other subservices for 9 seconds.
                        5/23/2014 8:43 AM FOG::PrinterManager interprocess comm startup: OK
                        5/23/2014 8:43 AM * Starting FOG.TaskReboot
                        5/23/2014 8:43 AM * Starting FOG.UserCleanup
                        5/23/2014 8:43 AM FOG::TaskReboot Taskreboot in lazy mode.
                        5/23/2014 8:43 AM FOG::TaskReboot Starting Task Reboot…
                        5/23/2014 8:43 AM * Starting FOG.UserTracker
                        5/23/2014 8:43 AM FOG::UserCleanup Sleeping for 13 seconds.
                        5/23/2014 8:43 AM FOG::UserTracker Starting user tracking process…
                        5/23/2014 8:43 AM FOG::SnapinClient Starting snapin client process…
                        5/23/2014 8:43 AM FOG::SnapinClient Sleeping for 479 seconds.
                        5/23/2014 8:43 AM FOG::DisplayManager Attempting to connect to fog server…
                        5/23/2014 8:43 AM FOG::UserTracker Attempting to connect to fog server…
                        5/23/2014 8:43 AM FOG::HostnameChanger Attempting to connect to fog server…
                        5/23/2014 8:43 AM FOG::PrinterManager Sevice is disabled.
                        5/23/2014 8:43 AM FOG::PrinterManager Module is active…
                        5/23/2014 8:43 AM FOG::PrinterManager Starting printer manager…
                        5/23/2014 8:43 AM FOG::PrinterManager Yielding to other services for 30 seconds.
                        5/23/2014 8:43 AM FOG::AutoLogOut Module is disabled globally on the FOG Server.
                        5/23/2014 8:43 AM FOG::UserCleanup Starting user cleanup process…
                        5/23/2014 8:43 AM FOG::UserCleanup Attempting to connect to fog server…
                        5/23/2014 8:43 AM FOG::UserCleanup Module is disabled globally on the FOG Server, exiting.
                        5/23/2014 8:43 AM FOG::UserTracker Module is active…
                        5/23/2014 8:43 AM FOG::DisplayManager Module is disabled globally on the FOG Server.
                        5/23/2014 8:43 AM FOG::HostnameChanger Module is active…
                        5/23/2014 8:43 AM FOG::HostnameChanger AD mode requested, confirming settings.
                        5/23/2014 8:43 AM FOG::HostnameChanger Hostname is up to date
                        5/23/2014 8:43 AM FOG::HostnameChanger Attempting to join domain if not already a member…
                        5/23/2014 8:43 AM FOG::HostnameChanger Domain Error! (‘Unknown Error’ Code: 2202)

                        1 Reply Last reply Reply Quote 0
                        • N
                          naeren
                          last edited by

                          That error 2202 is returned directly from Active Directory, and from what I can tell after some searching, it’s saying “invalid username or group”. I’m not sure why it doesn’t like Administrator, but I would probably try a different user next. I would recommend using an account with less permissions anyway due to security concerns.

                          1 Reply Last reply Reply Quote 0
                          • R
                            Raff
                            last edited by

                            Before you change the account, If the host already exists in AD try deleting it, then restart fog service on client.

                            1 Reply Last reply Reply Quote 0
                            • R
                              Raff
                              last edited by

                              Bill,

                              Looking through the posts again, you have probably changed the global AD settings to use [B]Domain Username: Administrator[/B] but you have not done it for that individual host in Host Management. Its is still probably using Domain\Administrator.

                              1 Reply Last reply Reply Quote 0
                              • Bill RiceB
                                Bill Rice Testers
                                last edited by

                                Let me Say!!! Thank you to the community! I now have AD joining functional again… the simple aspect of removing the roxborough\ in the host setting was the KEY!!! ty…

                                Key Factor:
                                “you have not done it for that individual host in Host Management. Its is still probably using Domain\Administrator.”

                                Ok so recap- After updating to 1.0.1 from .032
                                AD joining may break the fix for me was to verify the following settings :

                                FOG_AD_DEFAULT_DOMAINNAME [COLOR=#ff6600]My Domain.com[COLOR=#3366ff] This setting never changes[/COLOR][/COLOR]
                                FOG_AD_DEFAULT_OU ([COLOR=#ff6600]Blank[/COLOR]) Using default OU Computers1 [COLOR=#3366ff]This setting never changes[/COLOR]
                                FOG_AD_DEFAULT_USER [U][U][COLOR=#ff6600][SIZE=5]Administrator[/SIZE][/COLOR][/U][/U] (as per updated version only User name required) [B][U][U][SIZE=5][COLOR=#999999]REMOVE the DOMAIN\ Just leave the User name ONLY[/COLOR][/SIZE][/U][/U][/B]
                                FOG_AD_DEFAULT_PASSWORD ([COLOR=#ff6600]Encrypted with fogcrypt[/COLOR]) [COLOR=#3366ff]This setting never changes[/COLOR]

                                [COLOR=#ff6600]Under HOST options check the AD setting and make sure it does not have “[U][B]Domain\USER”[/B][/U] It Must match as above (User Name only)[/COLOR]

                                [COLOR=#ff6600]after this I was able to have the PC join the Domain with the Fog service[/COLOR]

                                1 Reply Last reply Reply Quote 0
                                • R
                                  Raff
                                  last edited by

                                  Your welcome Bill, If you have hundreds of hosts in your database with that setting, create a temporary group and mass change the AD setting.

                                  1 Reply Last reply Reply Quote 0
                                  • Bill RiceB
                                    Bill Rice Testers
                                    last edited by

                                    [quote=“Raff, post: 28068, member: 298”]Your welcome Bill, If you have hundreds of hosts in your database with that setting, create a temporary group and mass change the AD setting.[/quote]

                                    Small issue with that I have over 500 deployed systems. some images are not allowed access to the domain CEO’s, CFO’s and so on. so I must go through all of my hosts and check each one individually… but I have no issue doing this… as long as I know it works.!

                                    1 Reply Last reply Reply Quote 0
                                    • R
                                      Raff
                                      last edited by

                                      You could do an SQL query to the database directly and change only the ones that have the setting roxborough\Administrator

                                      1 Reply Last reply Reply Quote 0
                                      • Bill RiceB
                                        Bill Rice Testers
                                        last edited by

                                        [quote=“Raff, post: 28071, member: 298”]You could do an SQL query to the database directly and change only the ones that have the setting roxborough\Administrator[/quote]

                                        RAFF,
                                        Im not that familiar with SQL modification is there a simple way to either use a GUI to search it or a step by step command to edit the SQL database… I have always wanted to reset the numbering as well for images we have deleted and the newest images just keep adding on increasing in number.

                                        1 Reply Last reply Reply Quote 0
                                        • R
                                          Raff
                                          last edited by

                                          I use SQLyog community edition to make a connection to the database.

                                          Recommend you make a backup first.

                                          The SQL query you need to execute is:
                                          update hosts set hostADUser=‘Administrator’ where hostADUser=‘roxborough\Administrator’;

                                          1 Reply Last reply Reply Quote 0
                                          • Bill RiceB
                                            Bill Rice Testers
                                            last edited by

                                            Ok so I am attempting to do this two ways… Directly from the FOG server Via Command Line and from a windows PC here is the error i see from the Fog Server:
                                            roxborough@roxmintfog:~$ mysql -u root -p fog
                                            Enter password:
                                            Reading table information for completion of table and column names
                                            You can turn off this feature to get a quicker startup with -A

                                            Welcome to the MySQL monitor. Commands end with ; or \g.
                                            Your MySQL connection id is 9275
                                            Server version: 5.5.37-0ubuntu0.12.04.1 (Ubuntu)

                                            Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.

                                            Oracle is a registered trademark of Oracle Corporation and/or its
                                            affiliates. Other names may be trademarks of their respective
                                            owners.

                                            Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.

                                            mysql> update hosts set hostADUser=‘Administrator’ where hostADUser=‘roxborough\Administrator’;
                                            Query OK, 0 rows affected (0.00 sec)
                                            Rows matched: 0 Changed: 0 Warnings: 0

                                            mysql> update hosts set hostADUser=‘Administrator’ where hostADUser=‘roxborough\Administrator’;
                                            Query OK, 0 rows affected (0.00 sec)
                                            Rows matched: 0 Changed: 0 Warnings: 0

                                            mysql>
                                            and in Windows I tried using SQLyog for win and it keeps adding my domain ID to the end of the logon users credentials so it denies access to the fog server/DB.

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

                                            262

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project