OK, I’ve recompiled hostnamechanger.dll from the Git repository and everything is now working as expected. Thanks again for the help!
Latest posts made by Ddog800
-
RE: Active Directory registration not working Windows 7 x64 client
-
RE: Active Directory registration not working Windows 7 x64 client
Awesome, I’ll pull it down now and give it a go. I’ll post an update once I’ve completed the testing.
Thanks guys!
Daniel
-
RE: Active Directory registration not working Windows 7 x64 client
[quote=“Jbob, post: 41922, member: 21733”]Please do the following:[/quote]
Hi Bob, I’ve already posted it. It’s in the top of my code block under ‘Web service’.Also, I did notice in the other post about patching the .dll that Wolf mentioned, it said that there is updated hostnamechanger.dll source in the SVN. I did actually try and get that over the weekend, but the SVN only pulled all of the source except for the Windows code for hostnamechanger.dll. The code I used to patch the .dll with my passkey was from the main distributable for 1.2.0 on SourceForge, fog_1.2.0.tar.gz.
Thanks!
-
RE: Active Directory registration not working Windows 7 x64 client
[quote=“Wolfbane8653, post: 41917, member: 3362”][CODE]2/9/2015 10:11 AM FOG::HostnameChanger Index was outside the bounds of the array.
2/9/2015 10:11 AM FOG::HostnameChanger at FOG.HostNameChanger.changeHostName()[/CODE]A quick search reviles…[/quote]
Hi Wolfbane, thanks for the quick reply! As I’d noted, I already found this post and tested accordingly, but it didn’t seem to apply to this situation. With no product key I do get the ‘index was outside the bounds of the array’ message. For the heck of it, I tested with a product key added and it still failed. I got a slightly different error message:
[B]2/9/2015 11:38 AM FOG::HostnameChanger Failed: Incomplete server response; got: 7; wanted: 6.
2/9/2015 11:38 AM FOG::HostnameChanger Host name was not found in the database.[/B]When i searched for that, the only resolution I could find was to set the FOG service to start as ‘Automatic (Delayed)’. This didn’t resolve that issue. Since I wasn’t trying to use a product key anyway, it felt like I was falling down the wrong rabbit hole and decided to back up and try and resolve the original issue.
Having said that, you guys know much more about what’s under the hood than I do, so if you think patching my hostnamechange.dll with my passkey caused this problem, then please let me know. I did it according to the documentation, so I assumed that it would work OK. I also didn’t see anyone else mention having trouble with hostname changes after patching with a new passkey.
Thanks!
Daniel -
RE: Active Directory registration not working Windows 7 x64 client
Did you ever find a resolution for this issue? I’m having the exact same problem. Running FOG 1.2.0 (although on CentOS 6.6 rather than Ubuntu) and imaging a Windows 7 x64 Pro system. This is a new FOG deployment and I’ve been trying to test AD join on the very first machine, but it doesn’t work. I get exact same error message stating that the Index is outside the bounds of the array. The full log is below. I also pasted the results of the web service query for the MAC address in question. Sensitive info has been changed.
I’ve search for this error, but haven’t found much. The only other post that came up said something about an issue when trying to push a product key without patching hostnamechange.dll, however we aren’t pushing a product key. However, the .dll was patched with our passkey, per the docs.
EDIT: Just an added note, the hostname itself is not being changed as well. Please let me know if you need me to post any additional info.
[CODE]
Web service#!ok=7010MASTER2 #AD=1 #ADDom=foo.com #ADOU=OU=Desktops-Win7-64bit,OU=myfoo,DC=foo,DC=com #ADUser=foo.com\fogadmin #ADPass=5s23387bcdafd2d6d2335n27d51ear227b625c3a393038cd4da4f257791b9842
Fog.log
2/9/2015 10:07 AM FOG::MODDebug MAC POST String:
2/9/2015 10:07 AM FOG::MODDebug No user is currently logged in
2/9/2015 10:07 AM FOG::MODDebug Hostname: WIN-GQ8J446DPCI
2/9/2015 10:07 AM FOG::MODDebug Attempting to open connect to: http://fogserver/fog/service/debug.php
2/9/2015 10:07 AM FOG::MODDebug Server responded with: Hello FOG Client
2/9/2015 10:07 AM FOG::MODDebug Module has finished work and will now exit.
2/9/2015 10:10 AM FOG Service Engine Version: 3
2/9/2015 10:10 AM Starting all sub processes
2/9/2015 10:10 AM 5 modules loaded
2/9/2015 10:10 AM * Starting FOG.SnapinClient
2/9/2015 10:10 AM * Starting FOG.HostNameChanger
2/9/2015 10:10 AM * Starting FOG.MODDebug
2/9/2015 10:10 AM * Starting FOG.SnapinClient
2/9/2015 10:10 AM FOG::MODDebug Start Called
2/9/2015 10:10 AM FOG::MODDebug Sleeping for 100 Seconds
2/9/2015 10:10 AM * Starting FOG.TaskReboot
2/9/2015 10:10 AM FOG::TaskReboot Taskreboot in lazy mode.
2/9/2015 10:10 AM FOG::TaskReboot Starting Task Reboot…
2/9/2015 10:10 AM FOG::ClientUpdater Starting client update process…
2/9/2015 10:10 AM FOG::ClientUpdater Sleeping for 279 seconds.
2/9/2015 10:10 AM FOG::SnapinClient Starting snapin client process…
2/9/2015 10:10 AM FOG::HostnameChanger Starting hostname change process…
2/9/2015 10:10 AM FOG::HostnameChanger Yielding to other subservices for 6 seconds.
2/9/2015 10:10 AM FOG::SnapinClient Sleeping for 401 seconds.
2/9/2015 10:10 AM FOG::TaskReboot Attempting to connect to fog server…
2/9/2015 10:10 AM FOG::HostnameChanger Attempting to connect to fog server…
2/9/2015 10:11 AM FOG::TaskReboot Module is active…
2/9/2015 10:11 AM FOG::TaskReboot Attempting to connect to fog server…
2/9/2015 10:11 AM FOG::TaskReboot No task found for client.
2/9/2015 10:11 AM FOG::HostnameChanger Index was outside the bounds of the array.
2/9/2015 10:11 AM FOG::HostnameChanger at FOG.HostNameChanger.changeHostName()
2/9/2015 10:12 AM FOG::MODDebug Reading config settings…
2/9/2015 10:12 AM FOG::MODDebug Reading of config settings passed.
2/9/2015 10:12 AM FOG::MODDebug Starting Core processing…
2/9/2015 10:12 AM FOG::MODDebug Operating System ID: 6
2/9/2015 10:12 AM FOG::MODDebug Operating System Minor: 1
2/9/2015 10:12 AM FOG::MODDebug MAC ID 0 B8:CA:3A:B9:8D:24
2/9/2015 10:12 AM FOG::MODDebug MAC POST String: B8:CA:3A:B9:8D:24
2/9/2015 10:12 AM FOG::MODDebug A user is currently logged in
2/9/2015 10:12 AM FOG::MODDebug Username: AUTOBVT-JJ6MEQE\Administrator
2/9/2015 10:12 AM FOG::MODDebug Hostname: AUTOBVT-JJ6MEQE
2/9/2015 10:12 AM FOG::MODDebug Attempting to open connect to: http://fogserver/fog/service/debug.php
2/9/2015 10:12 AM FOG::MODDebug Server responded with: Hello FOG Client
2/9/2015 10:12 AM FOG::MODDebug Module has finished work and will now exit.[/CODE][url=“/_imported_xf_attachments/1/1664_foginstall.txt?:”]foginstall.txt[/url]
-
RE: Securing Active Directory integration
I just ran into this issue trying to compile with Visual Studio 2013. In 2011 MS announced they would not longer support Visual Studio Installer Projects in future VS versions. However, due to rather loud customer feedback they ended up created an extension that could open those projects.
[url]http://blogs.msdn.com/b/buckh/archive/2011/03/17/visual-studio-setup-projects-vdproj-will-not-ship-with-future-versions-of-vs.aspx[/url]
[url]http://blogs.msdn.com/b/visualstudio/archive/2014/04/17/visual-studio-installer-projects-extension.aspx[/url]
[url]https://visualstudiogallery.msdn.microsoft.com/9abe329c-9bba-44a1-be59-0fbf6151054d[/url]I’ve installed the extension and tested it out with VS 2013 Pro and it works great. The FOG service installer project loads and compiles successfully. I didn’t test it with the Express version so I can’t confirm if everything is OK in that environment, but at least it is possible.
Edit: Forgot to mention, I also received the build error with blank.jpg. I simply deleted the reference from the solution explorer and then rebuilt the solution. Everything built correctly. The jpg was likely being used as a graphic in the installer, but is not likely to be critical. The newly built service installed with no issues.