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

samba domain integration

Scheduled Pinned Locked Moved Solved
Linux Problems
8
102
74.2k
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.
  • P
    plegrand @Tom Elliott
    last edited by Sep 23, 2015, 6:30 AM

    @Tom-Elliott Hello, Is it planned to correct the problem concerning specials characters in the domain administrator password ? Or do i have to use a password without special characters ?

    I’ve got another little problem, on the host page : i’ve got “No response” with an exclamation point in a red circle as fog didnt see the host .
    Nevertheless i can see the host add snapins etc…
    Thanks for your help

    For informations, for each tests i make on fog (installation, download, upload, samba domain, snapins…), i write a little (french) procedure, are you interested by that ?
    Thanks again

    1 Reply Last reply Reply Quote 0
    • P
      plegrand
      last edited by Sep 25, 2015, 9:00 AM

      New problem with the last svn version to join samba domain i’ve got this error message in fog.log file :
      The specified domain either does not exist or could not be contacted , code = 1355

      And this in the apache error log :
      PHP Warning: strpos(): needle is not a string or an integer in /var/www/fog/lib/client/HostnameChanger.class.php on line 12

      I use an admin password without special characters, and it works manually

      Thanks for your help

      1 Reply Last reply Reply Quote 0
      • S
        Sebastian Roth Moderator
        last edited by Sebastian Roth Sep 25, 2015, 4:56 AM Sep 25, 2015, 10:55 AM

        Do you specify the ADuser like this: domain\user ??
        There is a little coding error in HostnameChanger.class.php on line 12 which would cause trouble then. You could try to just put in the user as FOG can handle this by adding the domain by itself (see in the code).

        @Tom-Elliott I think you had this correct in an earlier version. Find some examples on how to do strpos with array here: http://stackoverflow.com/questions/11514302/searching-for-array-of-needle-values-with-strpos

        @plegrand According your question about special characters in the password, I reckon that apostrophe is pretty special that way. It’s often used to begin and end strings in PHP and SQL. So it definitely can cause a lot of trouble. I think it would take quite some time to get this fixed and tested through all the layers of FOG/webinterface/database/client… I am sorry but I don’t find the time at the moment. Maybe you want to look through the code and see if you can find where it actually fails. Would be of great help.

        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

        T P 3 Replies Last reply Sep 25, 2015, 11:39 AM Reply Quote 0
        • T
          Tom Elliott @Sebastian Roth
          last edited by Sep 25, 2015, 11:39 AM

          @Uncle-Frank You are correct. For some idiotic reason I tried to pass through an array. Even though the php manual states the needle to search for can be a mixed sort, I’m guessing strpos just wasn’t smart enough. I’ve now fixed this issue. Now I suppose I really need to try figuring out the whole apostrophe in the password bit.

          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

          P 2 Replies Last reply Sep 25, 2015, 12:25 PM Reply Quote 0
          • P
            plegrand @Sebastian Roth
            last edited by Sep 25, 2015, 12:08 PM

            @Uncle-Frank Thanks a lot for your answer, for the moment i use a “classic” password and it works fine.
            This morning it didnt works anymore with a classic password. If i understand i’ve got upgrade svn and it will work again?
            Thanks again

            1 Reply Last reply Reply Quote 0
            • P
              plegrand @Tom Elliott
              last edited by Sep 25, 2015, 12:25 PM

              @Tom-Elliott i upgraded to 4059 but i cant join domain, there is no more error message in apache error.log
              do i have to use domain\user ?

              1 Reply Last reply Reply Quote 0
              • P
                plegrand @Sebastian Roth
                last edited by Sep 25, 2015, 12:40 PM

                @Uncle-Frank sorry but it’s not very clear for me, do i have to use domain\user now ?
                I’ve got again this error message in fog.log :
                The specified domain either does not exist or could not be contacted , code = 1355
                But i can join domain manually
                Thanks again

                S 1 Reply Last reply Sep 25, 2015, 3:05 PM Reply Quote 0
                • P
                  plegrand @Tom Elliott
                  last edited by Sep 25, 2015, 1:30 PM

                  @Tom-Elliott Hello i think it’s not fixed because i’ve got the same error.
                  There is no more error in error.log apache file but the same in fog.log
                  It worked with an older svn version
                  Thanks

                  1 Reply Last reply Reply Quote 0
                  • T
                    Tom Elliott
                    last edited by Sep 25, 2015, 2:29 PM

                    Please update and try again.

                    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

                    P 1 Reply Last reply Sep 25, 2015, 4:38 PM Reply Quote 0
                    • S
                      Sebastian Roth Moderator @plegrand
                      last edited by Sep 25, 2015, 3:05 PM

                      @plegrand

                      sorry but it’s not very clear for me, do i have to use domain\user now ?

                      As far as I understand the code you can go with either ‘user’ oder ‘domain\user’ (without the quotes). Both should work.

                      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 Sep 25, 2015, 3:17 PM

                        Actually,

                        You can have the user as: user@domain, domain\user, or user

                        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 1
                        • P
                          plegrand @Tom Elliott
                          last edited by Sep 25, 2015, 4:38 PM

                          @Tom-Elliott Thanks for your answer. I’ll try on monday and will tell you .
                          Thanks again

                          1 Reply Last reply Reply Quote 0
                          • T
                            Tom Elliott
                            last edited by Sep 26, 2015, 12:01 AM

                            I have no clue if the apostrophe in the password issue is fixed but I do want to inform my findings. I added a but of code to the client output that was intended to display the information to us in a more, dare I say friendly way. The issue I found was this one line of code was causing the data to be parsed by the html entity of the character being presented, such as ’ instead of '. Removing this one line corrects the output to display in the browser properly and I’m just guessing this was the failure of the apostrophe in the password

                            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

                            T 1 Reply Last reply Sep 26, 2015, 12:03 AM Reply Quote 0
                            • T
                              Tom Elliott @Tom Elliott
                              last edited by Sep 26, 2015, 12:03 AM

                              @Tom-Elliott apparently node is smart too, the code was & # 3 9 ; without the spaces

                              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
                              • P
                                plegrand
                                last edited by Sep 28, 2015, 6:50 AM

                                Hello,
                                it doesnt works.
                                For the moment i try just made a try with “normal” password and it doesn’t works.
                                On the client :
                                The specified domain either does not exist or could not be contacted , code = 1355
                                In the error.log :
                                PHP Warning: _() expects exactly 1 parameter, 2 given in /var/www/fog/lib/fog/FOGController.class.php on line 123

                                And i can join the client manually
                                Do i have to test passwor with apostrophe ?

                                THanks

                                T 1 Reply Last reply Sep 28, 2015, 9:29 AM Reply Quote 0
                                • T
                                  Tom Elliott @plegrand
                                  last edited by Sep 28, 2015, 9:29 AM

                                  @plegrand I fixed the line 123 error thrown, but this is not the issue you’re running into. The fact that it’s directly stating that the domain does not or exist or could not be reached is the issue now. At least as far as I can tell. Using it with, or without apostrophe should not matter now. You need to fix the 1355 issue first. This isn’t something FOG is failing to do any more. At least not for right now.

                                  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

                                  P 1 Reply Last reply Sep 28, 2015, 9:39 AM Reply Quote 0
                                  • P
                                    plegrand @Tom Elliott
                                    last edited by Sep 28, 2015, 9:39 AM

                                    @Tom-Elliott it worked before with same client same admin same password. I can join manually my client to the samba domain.
                                    The the 1355 issue is only (i think) with fog client.

                                    T 1 Reply Last reply Sep 28, 2015, 9:47 AM Reply Quote 0
                                    • T
                                      Tom Elliott @plegrand
                                      last edited by Sep 28, 2015, 9:47 AM

                                      @plegrand 1355 is the error to look into. This error is not coming from the client, it’s coming from the method being used to join the domain which is erroring out with that exit code. The exact error code is from Windows attempt at joining. This is the issue. Meaning, double check the domain being connected. These are saved on a per host basis. For example, if the domain to be joined is example.com and the user joining the domain is set as example\administrator try removing the example out of the username spot.

                                      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

                                      P 1 Reply Last reply Sep 28, 2015, 9:52 AM Reply Quote 0
                                      • P
                                        plegrand @Tom Elliott
                                        last edited by plegrand Sep 28, 2015, 3:56 AM Sep 28, 2015, 9:52 AM

                                        @Tom-Elliott
                                        Here is the configuration i use on the fog server wich doesn’t works. error 1355
                                        Join Domain after image task
                                        Domain name samba_domain
                                        Domain Username samba_admin
                                        Domain Password samba_password
                                        I use the same informations to join manually the windows machine and it works fine without error.
                                        It works also with netdom command with same informations
                                        And as i said, with an older svn version it worked with same configuration

                                        1 Reply Last reply Reply Quote 0
                                        • T
                                          Tom Elliott
                                          last edited by Sep 28, 2015, 9:56 AM

                                          Is this the same information specified for this host?

                                          I don’t care if it worked 1 million times in a row, right now the error is telling you EXACTLY what is wrong.

                                          Where did you get this information? Did you get it from the “default” settings or directly off the host?

                                          I’m not lying to you right now. The error you are seeing is not coming from FOG in anyway shape or form, at least not directly.

                                          The messages you’re seeing is coming from Windows’ own attempt to join. This is where it it failing.

                                          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

                                          P 1 Reply Last reply Sep 28, 2015, 11:51 AM Reply Quote 0
                                          • 1
                                          • 2
                                          • 3
                                          • 4
                                          • 5
                                          • 6
                                          • 4 / 6
                                          4 / 6
                                          • First post
                                            36/102
                                            Last post

                                          302

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project