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

[1.3.0-RC-8] Issue when connecting to a node with Active Directory Authentication style

Scheduled Pinned Locked Moved Solved
Bug Reports
3
5
1.4k
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.
  • G
    glefebvr
    last edited by Sep 2, 2016, 5:16 PM

    Server
    • Version: [1.3.0-RC-8]
    • OS: Debian Wheezy
    Description

    When doing replication between nodes, I have a login issue with this command :

    lftp -e 'set ftp:list-options -a;set net:max-retries 10;set net:timeout 30;  mirror -c -R --ignore-time -vvv --exclude 'dev/' --exclude 'ssl/' --exclude 'CA/' --delete-first /images/GEO2015AUTPOST /ifs/data/ACAD/DIR-CI/SAMARIS/geo-bkp2/GEO2015AUTPOST; exit' -u domain\fog,[Protected] xx.yyy.zz
    

    When modifying this command this way (quoting user name), it does work :

    lftp -e 'set ftp:list-options -a;set net:max-retries 10;set net:timeout 30;  mirror -c -R --ignore-time -vvv --exclude 'dev/' --exclude 'ssl/' --exclude 'CA/' --delete-first /images/GEO2015AUTPOST /ifs/data/ACAD/DIR-CI/SAMARIS/geo-bkp2/GEO2015AUTPOST; exit' -u "domain\fog",[Protected] xx.yyy.zz
    

    This way it also works (user@domain) :

    lftp -e 'set ftp:list-options -a;set net:max-retries 10;set net:timeout 30;  mirror -c -R --ignore-time -vvv --exclude 'dev/' --exclude 'ssl/' --exclude 'CA/' --delete-first /images/GEO2015AUTPOST /ifs/data/ACAD/DIR-CI/SAMARIS/geo-bkp2/GEO2015AUTPOST; exit' -u fog@domain,[Protected] xx.yyy.zz
    

    It seems that there is an issue handling backslashes

    Thank you in advance for checking this.

    Guillaume

    Here is an excerpt from the fogreplicator log :

    [09-02-16 6:51:42 pm] * Found Image to transfer to 2 node(s)
    [09-02-16 6:51:42 pm] | Image name: GEO-2015AUT-POST
    [09-02-16 6:51:43 pm] * Starting Sync Actions
    [09-02-16 6:51:43 pm] | CMD:
    lftp -e ‘set ftp:list-options -a;set net:max-retries 10;set net:timeout 30; mirror -c -R --ignore-time -vvv --exclude ‘dev/’ --exclude ‘ssl/’ --exclude ‘CA/’ --delete-first /images/GEO2015AUTPOST /ifs/data/ACAD/DIR-CI/SAMARIS/geo-bkp2/GEO2015AUTPOST; exit’ -u domain\fog,[Protected] xx.yyy.zz
    [09-02-16 6:51:44 pm] * Started sync for Image GEO-2015AUT-POST
    [09-02-16 6:51:44 pm] * Found Image to transfer to 2 node(s)
    [09-02-16 6:51:44 pm] | Image name: GEO-2015AUT-PRE
    [09-02-16 6:51:46 pm] * Starting Sync Actions
    [09-02-16 6:51:46 pm] | CMD:
    lftp -e ‘set ftp:list-options -a;set net:max-retries 10;set net:timeout 30; mirror -c -R --ignore-time -vvv --exclude ‘dev/’ --exclude ‘ssl/’ --exclude ‘CA/’ --delete-first /images/GEO2015AUTPRE /ifs/data/ACAD/DIR-CI/SAMARIS/geo-bkp2/GEO2015AUTPRE; exit’ -u domain\fog,[Protected] xx.yyy.zz
    [09-02-16 6:51:46 pm] * Started sync for Image GEO-2015AUT-PRE
    [09-02-16 6:51:46 pm] * Found Image to transfer to 2 node(s)
    [09-02-16 6:51:46 pm] | Image name: geo-2015P-dep
    [09-02-16 6:51:47 pm] | Local File: /images/geo2015Pdep/d1.mbr
    [09-02-16 6:51:47 pm] | Remote File: /ifs/data/ACAD/DIR-CI/SAMARIS/geo-bkp2/geo2015Pdep/d1.mbr
    [09-02-16 6:51:48 pm] | Local File size: 512
    [09-02-16 6:51:48 pm] | Remote File size: 512
    [09-02-16 6:51:48 pm] | Files match
    [09-02-16 6:51:48 pm] | Local File: /images/geo2015Pdep/d1p1.img
    [09-02-16 6:51:49 pm] | Remote File: /ifs/data/ACAD/DIR-CI/SAMARIS/geo-bkp2/geo2015Pdep/d1p1.img
    [09-02-16 6:51:49 pm] | Local File size: 8926699
    [09-02-16 6:51:49 pm] | Remote File size: 8926699
    [09-02-16 6:51:49 pm] | Files match
    [09-02-16 6:51:50 pm] | Local File: /images/geo2015Pdep/d1p2.img
    [09-02-16 6:51:50 pm] | Remote File: /ifs/data/ACAD/DIR-CI/SAMARIS/geo-bkp2/geo2015Pdep/d1p2.img
    mirror: Login failed: 530 Login incorrect.
    mirror: Login failed: 530 Login incorrect.

    1 Reply Last reply Reply Quote 0
    • T
      Tom Elliott @glefebvr
      last edited by Sep 5, 2016, 12:52 PM

      @glefebvr Can you try using the rc 10 working branch for a replication?

      I just want to see if all is working properly. I’ve added safe argument handling to the lftp commands so theoretically your particular case should work once 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

      1 Reply Last reply Reply Quote 1
      • W
        Wayne Workman
        last edited by Sep 2, 2016, 5:47 PM

        Does your password have a backslash in it, or any other special characters? I have had issues in the past with using the $ character. Of course, a backslash in Linux means escape, but within single quotes it is not interpreted and just represents an ascii char.

        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!
        Daily Clean Installation Results:
        https://fogtesting.fogproject.us/
        FOG Reporting:
        https://fog-external-reporting-results.fogproject.us/

        1 Reply Last reply Reply Quote 0
        • G
          glefebvr
          last edited by Sep 5, 2016, 6:31 AM

          No, my password does only have letters and digit in it. I didn’t test passwords with backslashes, but only with the username. As shown by my examples, it seems that FOG is not escaping correctly the backslash in the username.

          T 1 Reply Last reply Sep 5, 2016, 12:52 PM Reply Quote 0
          • T
            Tom Elliott @glefebvr
            last edited by Sep 5, 2016, 12:52 PM

            @glefebvr Can you try using the rc 10 working branch for a replication?

            I just want to see if all is working properly. I’ve added safe argument handling to the lftp commands so theoretically your particular case should work once 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

            1 Reply Last reply Reply Quote 1
            • G
              glefebvr
              last edited by Sep 17, 2016, 12:36 PM

              Problem solved in 1.3.0-RC-10. Thanks !

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

              156

              Online

              12.0k

              Users

              17.3k

              Topics

              155.2k

              Posts
              Copyright © 2012-2024 FOG Project