Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/3.5' into 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jul 5, 2014
2 parents faa5eba + dec4ff2 commit 2921412
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 13 deletions.
1 change: 1 addition & 0 deletions scripts/members/sync_members_dolibarr2ldap.php
Expand Up @@ -82,6 +82,7 @@
$input = trim(fgets(STDIN));
print "Warning, this operation may result in data loss if it failed.\n";
print "Be sure to have a backup of your LDAP database (With OpenLDAP: slapcat > save.ldif).\n";

print "Hit Enter to continue or CTRL+C to stop...\n";
$input = trim(fgets(STDIN));

Expand Down
4 changes: 0 additions & 4 deletions scripts/members/sync_members_ldap2dolibarr.php
Expand Up @@ -95,8 +95,6 @@

if ($argv[3]) $conf->global->LDAP_SERVER_HOST=$argv[2];

print "***** $script_file ($version) *****\n";

if (! isset($argv[2]) || ! is_numeric($argv[2])) {
print "Usage: $script_file (nocommitiferror|commitiferror) id_member_type [ldapserverhost]\n";
exit(-1);
Expand Down Expand Up @@ -138,8 +136,6 @@
}


print "Press a key to confirm...";
$input = trim(fgets(STDIN));
print "Hit Enter to continue or CTRL+C to stop...\n";
$input = trim(fgets(STDIN));

Expand Down
5 changes: 1 addition & 4 deletions scripts/user/sync_groups_ldap2dolibarr.php
Expand Up @@ -72,8 +72,6 @@

if ($argv[2]) $conf->global->LDAP_SERVER_HOST=$argv[2];

print "***** $script_file ($version) *****\n";

if (! isset($argv[1])) {
//print "Usage: $script_file (nocommitiferror|commitiferror) [id_group]\n";
print "Usage: $script_file (nocommitiferror|commitiferror) [ldapserverhost]\n";
Expand Down Expand Up @@ -103,8 +101,7 @@
print "commitiferror=".$forcecommit."\n";
print "Mapped LDAP fields=".join(',',$required_fields)."\n";
print "\n";
print "Press a key to confirm...";
$input = trim(fgets(STDIN));

print "Hit Enter to continue or CTRL+C to stop...\n";
$input = trim(fgets(STDIN));

Expand Down
7 changes: 2 additions & 5 deletions scripts/user/sync_users_ldap2dolibarr.php
Expand Up @@ -85,14 +85,12 @@

if ($argv[2]) $conf->global->LDAP_SERVER_HOST=$argv[2];

print "***** $script_file ($version) *****\n";

if (! isset($argv[1])) {
//print "Usage: $script_file (nocommitiferror|commitiferror) [id_group]\n";
print "Usage: $script_file (nocommitiferror|commitiferror) [ldapserverhost]\n";
exit(-1);
}
$groupid=$argv[3];

if ($argv[1] == 'commitiferror') $forcecommit=1;


Expand All @@ -116,8 +114,7 @@
print "commitiferror=".$forcecommit."\n";
print "Mapped LDAP fields=".join(',',$required_fields)."\n";
print "\n";
print "Press a key to confirm...";
$input = trim(fgets(STDIN));

print "Hit Enter to continue or CTRL+C to stop...\n";
$input = trim(fgets(STDIN));

Expand Down

0 comments on commit 2921412

Please sign in to comment.