<!DOCTYPE html>
< html lang = "fr" dir = "ltr" >
< head >
< meta http-equiv = "content-type" content = "text/html; charset=UTF-8" >
< meta charset = "utf-8" / >
< title > documentation:2.0:restconfbackend< / title > <!-- //if:usedebianlibs
< link rel = "stylesheet" type = "text/css" href = "/javascript/bootstrap/css/bootstrap.min.css" / >
//elsif:useexternallibs
< link rel = "stylesheet" type = "text/css" href = "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" > < / script >
//elsif:cssminified
< link rel = "stylesheet" type = "text/css" href = "/static/bwr/bootstrap/dist/css/bootstrap.min.css" / >
//else --><!-- //endif -->
< meta name = "generator" content = "DokuWiki" / >
< meta name = "robots" content = "index,follow" / >
< meta name = "keywords" content = "documentation,2.0,restconfbackend" / >
< link rel = "search" type = "application/opensearchdescription+xml" href = "lib/exe/opensearch.html" title = "LemonLDAP::NG" / >
< link rel = "start" href = "restconfbackend.html" / >
< link rel = "contents" href = "restconfbackend.html" title = "Sitemap" / >
< link rel = "stylesheet" type = "text/css" href = "lib/exe/css.php.t.bootstrap3.css" / >
< link rel = "stylesheet" type = "text/css" href = "/static/bwr/bootstrap/dist/css/bootstrap.css" / >
< script type = "text/javascript" > / * < ! [ C D A T A [ * / v a r N S = ' d o c u m e n t a t i o n : 2 . 0 ' ; v a r J S I N F O = { " i d " : " d o c u m e n t a t i o n : 2 . 0 : r e s t c o n f b a c k e n d " , " n a m e s p a c e " : " d o c u m e n t a t i o n : 2 . 0 " } ;
/*!]]>*/< / script >
< script type = "text/javascript" charset = "utf-8" src = "lib/exe/js.php.t.bootstrap3.js" > < / script > <!-- //if:usedebianlibs
< script type = "text/javascript" src = "/javascript/jquery/jquery.min.js" > < / script >
//elsif:useexternallibs
< script type = "text/javascript" src = "http://code.jquery.com/jquery-2.2.0.min.js" > < / script >
//elsif:jsminified
< script type = "text/javascript" src = "/static/bwr/jquery/dist/jquery.min.js" > < / script >
//else -->
< script type = "text/javascript" src = "/static/bwr/jquery/dist/jquery.js" > < / script > <!-- //endif --> <!-- //if:usedebianlibs
< script type = "text/javascript" src = "/javascript/jquery-ui/jquery-ui.min.js" > < / script >
//elsif:useexternallibs
< script type = "text/javascript" src = "http://code.jquery.com/ui/1.10.4/jquery-ui.min.js" > < / script >
//elsif:jsminified
< script type = "text/javascript" src = "/static/bwr/jquery-ui/jquery-ui.min.js" > < / script >
//else -->
< script type = "text/javascript" src = "/static/bwr/jquery-ui/jquery-ui.js" > < / script > <!-- //endif -->
< / head >
< body >
< div class = "dokuwiki export container" > <!-- TOC START -->
< div id = "dw__toc" >
< h3 class = "toggle" > Table of Contents< / h3 >
< div >
< ul class = "toc" >
< li class = "level1" > < div class = "li" > < a href = "#configuration" > Configuration< / a > < / div >
< ul class = "toc" >
< li class = "level2" > < div class = "li" > < a href = "#first_configure_your_real_backend" > Premièrement, configurer le backend réel< / a > < / div > < / li >
< li class = "level2" > < div class = "li" > < a href = "#next_configure_rest_for_your_remote_servers" > Next, configure REST for your remote servers< / a > < / div > < / li >
< / ul > < / li >
< / ul >
< / div >
< / div > <!-- TOC END -->
< h1 class = "sectionedit1" id = "rest_configuration_backend" > REST configuration backend< / h1 >
< div class = "level1" >
< p >
You can share your configuration over the network using REST proxy system.
< / p >
< div class = "notetip" > Note that REST is not a real configuration backend, but just a proxy system to access to your configuration over the network
< / div >
< / div > <!-- EDIT1 SECTION "REST configuration backend" [1 - 261] -->
< h2 class = "sectionedit2" id = "configuration" > Configuration< / h2 >
< div class = "level2" >
< / div > <!-- EDIT2 SECTION "Configuration" [262 - 288] -->
< h3 class = "sectionedit3" id = "first_configure_your_real_backend" > Premièrement, configurer le backend réel< / h3 >
< div class = "level3" >
< ul >
< li class = "level1" > < div class = "li" > Sur le serveur principal, configurer un backend < a href = "documentation/1.0/fileconfbackend.html" class = "wikilink1" title = "documentation:1.0:fileconfbackend" > File< / a > , < a href = "documentation/1.0/sqlconfbackend.html" class = "wikilink1" title = "documentation:1.0:sqlconfbackend" > SQL< / a > or < a href = "documentation/1.0/ldapconfbackend.html" class = "wikilink1" title = "documentation:1.0:ldapconfbackend" > LDAP< / a > < / div >
< / li >
< li class = "level1" > < div class = "li" > Enable REST server in the configuration using the manager (in portal plugins)< / div >
< / li >
< li class = "level1" > < div class = "li" > Configure Apache to allow remote access: in < code > portal-apache2.conf< / code > , remote REST access is disabled by default. Le Changer :< / div >
< / li >
< / ul >
< pre class = "code apache" > < span class = "co1" > # SOAP functions for configuration access (disabled by default)< / span >
< < span class = "kw3" > Location< / span > /index.fcgi/config>
< span class = "kw1" > Require< / span > ip 192.168.2.0/< span class = "nu0" > 24< / span >
< /< span class = "kw3" > Location< / span > > < / pre >
< / div > <!-- EDIT3 SECTION "First, configure your real backend" [289 - 878] -->
< h3 class = "sectionedit4" id = "next_configure_rest_for_your_remote_servers" > Next, configure REST for your remote servers< / h3 >
< div class = "level3" >
< p >
Changer la configuration dans lemonldap-ng.ini :
< / p >
< pre class = "code file ini" > < span class = "re1" > type< / span > < span class = "sy0" > =< / span > < span class = "re2" > REST< / span >
< span class = "re1" > baseUrl< / span > < span class = "sy0" > =< / span > < span class = "re2" > https://auth.example.com/index.fcgi/config< / span > < / pre >
< p >
On peut également ajouter quelques autres paramètres
< / p >
< pre class = "code file ini" > < span class = "re1" > User< / span > < span class = "sy0" > =< / span > < span class = "re2" > lemonldap< / span >
< span class = "re1" > Password< / span > < span class = "sy0" > =< / span > < span class = "re2" > mypassword< / span >
# LWP::UserAgent parameters
< span class = "re1" > proxyOptions< / span > < span class = "sy0" > =< / span > < span class = "re2" > < span class = "br0" > {< / span > timeout < span class = "sy0" > =< / span > > 5 < span class = "br0" > }< / span > < / span > < / pre >
< / div > <!-- EDIT4 SECTION "Next, configure REST for your remote servers" [879 - ] -->
< / div >
< / body >
< / html >