summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d8bb6b0)
raw | patch | inline | side by side (parent: d8bb6b0)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 16 Sep 2008 14:07:00 +0000 (14:07 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 16 Sep 2008 14:07:00 +0000 (14:07 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12484 594d385d-05f5-0310-b6e9-bd551577e9d8
index 839c056e79a3febdc1721dbc86fcfa69f2966b01..27cfc1e3d1ac9176b5d822ae2ef03da042e3c3f7 100644 (file)
-URL="https://www.gosa-project.org/demo/2.5/"
+URL="https://www.gosa-project.org/demo/2.6/"
index 43b8644441fec9a96e1b559731c3edaf6ec71636..deaaa40f8b01d8313ebb4c1a36dfc13d5398da86 100644 (file)
accountPrimaryAttribute="cn"
...
- <referral url="ldaps://ldap.example.net:636/dc=example,dc=net"
+ <referral uri="ldaps://ldap.example.net:636/dc=example,dc=net"
admin="cn=gosa-admin,dc=example,dc=net"
password="secret" />
statement enables copy and paste for LDAP entries managed with GOsa.
.PP
-.B enable_snapshot
+.B snapshots
.I bool
.PP
The
-.I enable_snapshot
+.I snapshots
statement enables a snapshot mechaism in GOsa. This enables you to save
certain states of entries and restore them later on.
.PP
-.B snapshot_base
+.B snapshotBase
.I dn
.PP
The
-.I snapshot_base
+.I snapshotBase
statement defines the base where snapshots should be stored inside of
the LDAP.
.PP
-.B snapshot_server
-.I url
+.B snapshotURI
+.I uri
.PP
The
-.I snapshot_server
-variable defines the LDAP URL for the server which is used to do object
+.I snapshotURI
+variable defines the LDAP URI for the server which is used to do object
snapshots.
.PP
-.B snapshot_user
+.B snapshotAdminDn
.I dn
.PP
The
-.I snapshot_user
+.I snapshotAdminDn
variable defines the user which is used to authenticate when connecting
to
-.I snapshot_server.
+.I snapshotURI.
.PP
-.B snapshot_password
+.B snapshotAdminPassword
.I string
.PP
The
-.I snapshot_password
+.I snapshotAdminPassword
variable defines the credentials which are used in combination with
-.I snapshot_user
+.I snapshotAdminDn
and
-.I snapshot_server
+.I snapshotURI
in order to authenticate.
.PP
.B Example:
.nf
- <referral url="ldap://ldap.example.net/dc=example,dc=net"
+ <referral uri="ldap://ldap.example.net/dc=example,dc=net"
admin="cn=gosa-admin,dc=example,dc=net"
password="secret" />
.fi
-.I url
-is a valid LDAP url extendet by the base this referral is responsible for.
+.I uri
+is a valid LDAP uri extendet by the base this referral is responsible for.
.I admin
is the DN which has the permission to write LDAP entries. And
.I password
index 8a83b1093c1f09680e02d05e2f9536c46fb003bd..a4c6979ec5b52dbcf65a64b30fe1260bf12d3131 100644 (file)
/* Handle referral tags */
case 'REFERRAL':
if ($this->tags[$this->level-2] == 'LOCATION'){
- $url= $attrs['URL'];
+ $url= $attrs['URI'];
$server= preg_replace('!^([^:]+://[^/]+)/.*$!', '\\1', $url);
/* Add location elements */
$bases= array();
$servers= array();
foreach ($this->current['REFERRAL'] as $ref){
- $server= preg_replace('%^(.*)/[^/]+$%', '\\1', $ref['URL']);
- $base= preg_replace('%^.*/([^/]+)$%', '\\1', $ref['URL']);
+ $server= preg_replace('%^(.*)/[^/]+$%', '\\1', $ref['URI']);
+ $base= preg_replace('%^.*/([^/]+)$%', '\\1', $ref['URI']);
$bases[$base]= strlen($base);
$servers[$base]= $server;
}
index 19d8c1d521d1fe2337be485a91398cc5416cb1e8..02f4c9573f623a0b0a00cb21ff19314b0ffc5908 100644 (file)
function rebind($ldap, $referral)
{
$credentials= $this->get_credentials($referral);
- if (@ldap_bind($ldap, LDAP::fix($credentials['ADMIN']), $credentials['PASSWORD'])) {
+ if (@ldap_bind($ldap, LDAP::fix($credentials['ADMINDN']), $credentials['ADMINPASSWORD'])) {
$this->error = "Success";
$this->hascon=true;
$this->reconnect= true;
return (0);
} else {
- $this->error = "Could not bind to " . $credentials['ADMIN'];
+ $this->error = "Could not bind to " . $credentials['ADMINDN'];
return NULL;
}
}
/* Ignore referrals */
$found= false;
foreach($this->referrals as $ref){
- $base= preg_replace('!^[^:]+://[^/]+/([^?]+).*$!', '\\1', $ref['URL']);
+ $base= preg_replace('!^[^:]+://[^/]+/([^?]+).*$!', '\\1', $ref['URI']);
if ($base == $cdn){
$found= true;
break;
if (isset($referrals[$server])){
return ($referrals[$server]);
} else {
- $ret['ADMIN']= LDAP::fix($this->binddn);
- $ret['PASSWORD']= $this->bindpw;
+ $ret['ADMINDN']= LDAP::fix($this->binddn);
+ $ret['ADMINPASSWORD']= $this->bindpw;
}
return ($ret);
index 31d5b4bafd80e2c155c2852626394c08e60b80f1..e208621def4c9345889b3dedc2b7a09d76bfb2e9 100644 (file)
$ldap->cd($this->config->current['BASE']);
/* check if there are special server configurations for snapshots */
- if($config->get_cfg_value("snapshot_server") == ""){
+ if($config->get_cfg_value("snapshotURI") == ""){
/* Source and destination server are both the same, just copy source to dest obj */
$ldap_to = $ldap;
$snapldapbase = $this->config->current['BASE'];
}else{
- $server = $config->get_cfg_value("snapshot_server");
- $user = $config->get_cfg_value("snapshot_user");
- $password = $config->get_cfg_value("snapshot_password");
- $snapldapbase = $config->get_cfg_value("snapshot_base");
+ $server = $config->get_cfg_value("snapshotURI");
+ $user = $config->get_cfg_value("snapshotAdminDn");
+ $password = $config->get_cfg_value("snapshotAdminPassword");
+ $snapldapbase = $config->get_cfg_value("snapshotBase");
$ldap_to = new ldapMultiplexer(new LDAP($user,$password, $server));
$ldap_to -> cd($snapldapbase);
/* Collect some infos */
$base = $this->config->current['BASE'];
- $snap_base = $config->get_cfg_value("snapshot_base");
+ $snap_base = $config->get_cfg_value("snapshotBase");
$base_of_object = preg_replace ('/^[^,]+,/i', '', $this->dn);
$new_base = preg_replace("/".normalizePreg($base)."$/","",$base_of_object).$snap_base;
function snapshotEnabled()
{
$config = $this->config;
- if($config->get_cfg_value("enable_snapshot") == "true"){
+ if($config->get_cfg_value("snapshots") == "true"){
/* Check if the snapshot_base is defined */
- if ($config->get_cfg_value("snapshot_base") == ""){
- msg_dialog::display(_("Configuration error"), sprintf(_("The snapshot functionality is enabled, but the required variable '%s' is not set."),"SNAPSHOT_BASE"), ERROR_DIALOG);
+ if ($config->get_cfg_value("snapshotBase") == ""){
+ msg_dialog::display(_("Configuration error"), sprintf(_("The snapshot functionality is enabled, but the required variable '%s' is not set."),"snapshotBase"), ERROR_DIALOG);
return(FALSE);
}
/* check if there are special server configurations for snapshots */
- if ($config->get_cfg_value("snapshot_server") != ""){
+ if ($config->get_cfg_value("snapshotURI") != ""){
/* check if all required vars are available to create a new ldap connection */
$missing = "";
- foreach(array("snapshot_server","snapshot_user","snapshot_password","snapshot_base") as $var){
+ foreach(array("snapshotURI","snapshotAdminDn","snapshotAdminPassword","snapshotBase") as $var){
if($config->get_cfg_value($var) == ""){
$missing .= $var." ";
msg_dialog::display(_("Configuration error"), sprintf(_("The snapshot functionality is enabled, but the required variable '%s' is not set."), $missing), ERROR_DIALOG);
/* check if there are special server configurations for snapshots */
- if(isset($cfg['SERVER']) && isset($cfg['SNAPSHOT_SERVER']) && $cfg['SERVER'] == $cfg['SNAPSHOT_SERVER']){
+ if(isset($cfg['SERVER']) && isset($cfg['SNAPSHOTURI']) && $cfg['SERVER'] == $cfg['SNAPSHOTURI']){
$ldap_to = $ldap;
- }elseif(isset($cfg['SNAPSHOT_SERVER'])){
- $server = $cfg['SNAPSHOT_SERVER'];
- $user = $cfg['SNAPSHOT_USER'];
- $password = $cfg['SNAPSHOT_PASSWORD'];
- $snapldapbase = $cfg['SNAPSHOT_BASE'];
+ }elseif(isset($cfg['SNAPSHOTURI'])){
+ $server = $cfg['SNAPSHOTURI'];
+ $user = $cfg['SNAPSHOTADMINDN'];
+ $password = $cfg['SNAPSHOTADMINPASSWORD'];
+ $snapldapbase = $cfg['SNAPSHOTBASE'];
$ldap_to = new ldapMultiplexer(new LDAP($user,$password, $server));
$ldap_to -> cd ($snapldapbase);
/* Prepare bases and some other infos */
$base = $this->config->current['BASE'];
- $snap_base = $cfg['SNAPSHOT_BASE'];
+ $snap_base = $cfg['SNAPSHOTBASE'];
$base_of_object = preg_replace ('/^[^,]+,/i', '', $dn);
$new_base = preg_replace("/".normalizePreg($base)."$/","",$base_of_object).$snap_base;
$tmp = array();
$cfg= &$this->config->current;
/* check if there are special server configurations for snapshots */
- if(isset($cfg['SNAPSHOT_SERVER'])){
- $server = $cfg['SNAPSHOT_SERVER'];
- $user = $cfg['SNAPSHOT_USER'];
- $password = $cfg['SNAPSHOT_PASSWORD'];
- $snapldapbase = $cfg['SNAPSHOT_BASE'];
+ if(isset($cfg['SNAPSHOTURI'])){
+ $server = $cfg['SNAPSHOTURI'];
+ $user = $cfg['SNAPSHOTADMINDN'];
+ $password = $cfg['SNAPSHOTADMINPASSWORD'];
+ $snapldapbase = $cfg['SNAPSHOTBASE'];
$ldap_to = new ldapMultiplexer(new LDAP($user,$password, $server));
$ldap_to->cd ($snapldapbase);
if (!$ldap_to->success()){
/* Prepare bases */
$base = $this->config->current['BASE'];
- $snap_base = $cfg['SNAPSHOT_BASE'];
+ $snap_base = $cfg['SNAPSHOTBASE'];
$new_base = preg_replace("/".normalizePreg($base)."$/","",$base_of_object).$snap_base;
/* Fetch all objects and check if they do not exist anymore */
$cfg= &$this->config->current;
/* check if there are special server configurations for snapshots */
- if(isset($cfg['SNAPSHOT_SERVER'])){
- $server = $cfg['SNAPSHOT_SERVER'];
- $user = $cfg['SNAPSHOT_USER'];
- $password = $cfg['SNAPSHOT_PASSWORD'];
- $snapldapbase = $cfg['SNAPSHOT_BASE'];
+ if(isset($cfg['SNAPSHOTURI'])){
+ $server = $cfg['SNAPSHOTURI'];
+ $user = $cfg['SNAPSHOTADMINDN'];
+ $password = $cfg['SNAPSHOTADMINPASSWORD'];
+ $snapldapbase = $cfg['SNAPSHOTBASE'];
$ldap_to = new ldapMultiplexer(new LDAP($user,$password, $server));
$ldap_to->cd ($snapldapbase);
if (!$ldap_to->success()){
index 8c3788db8251a28254a61f5efb4c4a9cc0a8653e..8e082d6383b0373b95db50f73b9fbd501b99be8e 100644 (file)
</div>
<div class='step4_container'>
<div class='step4_name'>
- <div style='vertical-align:middle;height:100%;'>{t}Connection URL{/t}</div>
+ <div style='vertical-align:middle;height:100%;'>{t}Connection URI{/t}</div>
</div>
<div class='step4_value'>
<input type='text' name='connection' maxlength='80' size='40' value='{$connection}'>