SVN 2815 : Change hostname


  • Moderator

    Hi,

    My FoG client won’t change the hostname of computers since today when I update my FoG version to 2815.

    I have this in the FoG client log :

    [CODE]21/10/2009 10:55 FOG::GUIWatcher Dispatch Failed!
    21/10/2009 10:55 FOG::GUIWatcher Message found, attempting to notify GUI![/CODE]

    Regards,
    Ch3i.



  • That wasn’t turned on, but FOG_NEW_CLIENT was. Must have been a test I forgot to change back.

    Thanks, everyone!


  • Senior Developer

    Can you turn of FOG_AES_ENCRYPT from FOG Configuration->FOG Settings->FOG Service?



  • Ah, I see. No matter what I put in the FOG_AD_DEFAULT_PASSWORD field, it changes back to what I had before.

    Here’s the apache error that occurs when I try to change it:

    [CODE][Wed Dec 17 11:52:15 2014] [error] [client 10.1.2.110] PHP Warning: mcrypt_decrypt(): The IV parameter must be as long as the blocksize in /var/www/fog/lib/fog/FOGBase.class.php on line 268, referer: http://fogserver/fog/management/index.php?node=about&sub=settings
    [/CODE]



  • Yes. This worked at one point. I’ll try to re-encrypt the password, though.


  • Senior Developer

    [quote=“2cool4me4, post: 40037, member: 25120”]No dice. But the error is different now.

    [CODE] 12/16/2014 4:35 PM FOG::HostnameChanger AD mode requested, confirming settings.
    12/16/2014 4:35 PM FOG::TaskReboot No job exists for (There’s no reason to remove this)
    12/16/2014 4:35 PM FOG::TaskReboot No task found for client.
    12/16/2014 4:35 PM FOG::HostnameChanger Additional non-parsable characters are at the end of the string.
    12/16/2014 4:35 PM FOG::HostnameChanger at System.ParseNumbers.StringToInt(String s, Int32 radix, Int32 flags, Int32* currPos)
    at System.Convert.ToByte(String value, Int32 fromBase)
    at FOG.FOGCrypt.hexToByte(String hex)
    at FOG.FOGCrypt.decryptHex(String hex)
    at FOG.HostNameChanger.changeHostName()[/CODE][/quote]

    When you encrypted your AD Password with FOGCrypt, did you copy and paste the encrypted string in the ADPass field?


  • Moderator

    Hi,

    It’s now OK for me since latest SVN.

    Regards,
    Ch3i.



  • No dice. But the error is different now.

    [CODE] 12/16/2014 4:35 PM FOG::HostnameChanger AD mode requested, confirming settings.
    12/16/2014 4:35 PM FOG::TaskReboot No job exists for (There’s no reason to remove this)
    12/16/2014 4:35 PM FOG::TaskReboot No task found for client.
    12/16/2014 4:35 PM FOG::HostnameChanger Additional non-parsable characters are at the end of the string.
    12/16/2014 4:35 PM FOG::HostnameChanger at System.ParseNumbers.StringToInt(String s, Int32 radix, Int32 flags, Int32* currPos)
    at System.Convert.ToByte(String value, Int32 fromBase)
    at FOG.FOGCrypt.hexToByte(String hex)
    at FOG.FOGCrypt.decryptHex(String hex)
    at FOG.HostNameChanger.changeHostName()[/CODE]


  • Senior Developer

    Yep
    update to 2816 and all should be fixed.


  • Developer

    Now fixing…Tom and his syntax errors.



  • I set the FOG service to delayed startup. Still the same issue. On a a system with an incorrect hostname, the hostname will not change. This is ONLY if the client is set to be joined to AD.

    [CODE] 12/16/2014 12:49 PM FOG::HostnameChanger Attempting to connect to fog server…
    12/16/2014 12:49 PM FOG::HostnameChanger Module is active…
    12/16/2014 12:49 PM FOG::HostnameChanger AD mode requested, confirming settings.
    12/16/2014 12:49 PM FOG::UserTracker Module is active…
    12/16/2014 12:49 PM FOG::PrinterManager Module is active…
    12/16/2014 12:49 PM FOG::HostnameChanger Could not find any recognizable digits.
    12/16/2014 12:49 PM FOG::PrinterManager Starting printer manager…
    12/16/2014 12:49 PM FOG::PrinterManager Yielding to other services for 36 seconds.
    12/16/2014 12:49 PM FOG::HostnameChanger at System.ParseNumbers.StringToInt(String s, Int32 radix, Int32 flags, Int32* currPos)
    at System.Convert.ToByte(String value, Int32 fromBase)
    at FOG.FOGCrypt.hexToByte(String hex)
    at FOG.FOGCrypt.decryptHex(String hex)
    at FOG.HostNameChanger.changeHostName()[/CODE]


  • Developer

    [quote=“2cool4me4, post: 40028, member: 25120”]You want the FOG service to be set to Automatic (Delayed)?[/quote]

    yes



  • You want the FOG service to be set to Automatic (Delayed)?


  • Senior Developer

    Those messages are normal.

    Try setting your client to delayed start to allow the join AD and hostname to change.


  • Moderator


Log in to reply
 

422
Online

39.3k
Users

11.0k
Topics

104.6k
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.