Bernhard Bühler schrieb:
Die Meldung kommt mir etwas bekannt vor. Hast du ev. die Version für SLES erwischt?
Starte auf jeden Fall direkt aus /opt/IDEALX/etc/..... Bekomme dann folgende Fehlermeldung: amd:/opt/IDEALX/imc/etc/init.d # /opt/IDEALX/imc/etc/init.d/imc-server start /opt/IDEALX/imc/etc/init.d/imc-server: line 16: /etc/init.d/functions: No such file or directory
Ich habe das imc package so downgeloadet: http://www.idealx.org/prj/imc/samba-console.html Download http://sourceforge.net/project/showfiles.php?group_id=126087&package_id=1378 40 Download imc-1.2.50-1.SUSE-9.2.i386.rpm Müßte doch das richtige package sein? Allerdings habe ich das samba-console package separat noch installiert: amd:/opt/IDEALX/imc/etc/init.d # rpm -q samba-console samba-console-1.1.31-1 line 16 von imc-server steht: # Source function library. . /etc/init.d/functions Gruss und Danke Andreas Um die Liste abzubestellen, schicken Sie eine Mail an: suse-linux-unsubscribe@suse.com Um eine Liste aller verfuegbaren Kommandos zu bekommen, schicken Sie eine Mail an: suse-linux-help@suse.com
Hallo Andreas, hallo Leute, Am Freitag, 5. August 2005 11:31 schrieb Andreas Bauer: [...]
amd:/opt/IDEALX/imc/etc/init.d # /opt/IDEALX/imc/etc/init.d/imc-server start /opt/IDEALX/imc/etc/init.d/imc-server: line 16: /etc/init.d/functions: No such file or directory line 16 von imc-server steht: # Source function library. . /etc/init.d/functions
Bist Du sicher, dass das Startscript SuSE-tauglich ist? Ich habe hier nur die 9.3, da wird in den Startscripten die /etc/rc.status eingebunden. IIRC war das bei der 9.2 auch schon so. Ändere mal das Startscript und binde statt /etc/init.d/functions die /etc/rc.status ein - mit etwas Glück sind die enthaltenen Funktionen kompatibel. Falls das nicht geht und zu weiteren Fehlermeldungen führt, kannst Du anhand von /etc/init.d/skeleton und dem vorhandenen Startscript ein eigenes Startscript zusammenbauen. Gruß Christian Boltz -- 2.-5.9.2005: Weinfest in Insheim Bei der Landjugend: Liquid, AH-Band und Deafen Goblins Mehr Infos: www.Landjugend-Insheim.de
Hallo Christian, hallo NG, Christian Boltz schrieb:
Ändere mal das Startscript und binde statt /etc/init.d/functions die /etc/rc.status ein - mit etwas Glück sind die enthaltenen Funktionen kompatibel. Hab ich mit sehr viel Erfolg gemacht. Das Script bleibt nur noch an Zeile 42 hängen und das ist wahrscheinlich die imc.xml:
amd:~ # /opt/IDEALX/imc/etc/init.d/imc-server start
Starting imc-server: /opt/IDEALX/imc/etc/init.d/imc-server: line 42: daemon:
command not found
function start() {
echo -n $"Starting $prog: "
check_config
l42: daemon ${IMC_HOME}/bin/imc-server -c ${IMC_HOME}/etc/imc.xml
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/imc
return $RETVAL
}
Meine /opt/IDEALX/imc/etc/imc.xml:
Ich hab die dc=samba,dc=org und die IP ersetzt, wie es in
/usr/share/doc/packages/samba-console/INSTALL.SambaConsole beschrieben war.
Muß ich die anderen Optionen, die auskommentiert sind, auch noch angleichen?
Hat schon mal jemand die imc.xml erfolgreich bearbeitet?
imc.xml:
<?xml version="1.0"?>
<!-- Samba Console configuration file -->
<imc>
<!-- Main configuration section -->
<!-- (this is read at startup by the IMC framework) -->
<global>
<!-- HTTP server parameters (defaults are ok) -->
<hostname>localhost</hostname>
<port>8080</port>
<!-- Define the default timeout for user sessions: -->
<!-- this is the expiration delay for the session cookie. -->
<session timeout='+5m'/>
<!-- the IMC framework will try to load plugins found in the './plugins'
-->
<!-- directory. -->
<!-- default='all' means all plugins found in the directory will be
loaded -->
<!-- default='none' means no plugins will be loaded by default -->
<!-- You can then add nodes like
<load>plugin name</load> or
<noload>plugin name<noload> to control which plugin will be loaded
-->
<pluginloader dir='./plugins/' default='all'/>
<!-- Choose an authentication backend -->
<!-- Possible values : AuthLDAP or XMLConfig -->
<auth>AuthLDAP</auth>
<!-- Default file to display when connecting to the '/' URI -->
<welcome-file>./plugins/SambaConsole/html/welcome.html</welcome-file>
</global>
<!-- plugin specific parameters -->
<plugins>
<auth>
<!-- parameters for AuthLDAP plugin / auth. backend -->
<!--
AuthenLDAPServer: IP or hostname of authentication LDAP server
AuthenBaseDN: look for user accounts under this branch when trying
to authenticate
AuthenUidAttrType: uid or cn usually; means look for object
(uid=<user>) or
(cn=<user>)
AuthenLDAPTLS: 0 or 1; wether to use LDAP-TLS or not
-->
<ldap AuthenBaseDN="dc=samba,dc=org"
AuthenLDAPServer="192.168.0.7"
AuthenUidAttrType="uid"
AuthenLDAPTLS="0" />
<!-- default admin (fallback case) -->
<!-- XMLConfig user account database -->
<user contact="admin@samba.org" description="default admin account"
name="Manager" pass="changeoninstall">
<role value="ADMIN"/>
<role value="Domain Admins"/>
<role value="Account Operators"/>
</user>
</auth>
<!-- Parameters for the UserManager2 component -->
<!-- This component is used internaly to manage the user accounts in the
-->
<!-- Samba Console -->
<usermanager2>
<ldap>
<!-- host or IP address of the LDAP server that contains the user
-->
<!-- accounts (this is normaly the same as above in the <auth><ldap>
-->
<!-- section -->
<host>localhost</host>
<!-- suffix / base dn for LDAP queries -->
That was it: Man muß den imc server über: amd:~ # /opt/IDEALX/imc/bin/imc-server start (in cleanup) Not a GLOB reference at /opt/IDEALX/imc/bin/../libexec/IO/Socket/SSL.pm line 454. nicht über: amd:/opt/IDEALX/imc/etc/init.d # /opt/IDEALX/imc/etc/init.d/imc-server start starten, dann öffnet sich die samba-console über https://localhost:8080. Einloggen funktioniert, aber mit beliebigen Name/passwort Kombinationen. Nach Klick auf Accountmanagement kommt: 500 Internal Server Error There was an error processing your request A fatal error occured : insufficient privileges to access /samba/conf at plugins/Core/IMC/RequestDispatcher.pm line 52. at IMC::RequestDispatcher::dispatch (/opt/IDEALX/imc/bin/../libexec/Pipeline/Dispatch.pm:69) at Pipeline::Dispatch::next (/opt/IDEALX/imc/bin/../libexec/Pipeline.pm:90) at Pipeline::dispatch_loop (/opt/IDEALX/imc/bin/../libexec/Pipeline.pm:64) at Pipeline::dispatch (plugins/Core/IMC/MainPipeline.pm:23) at IMC::MainPipeline::dispatch (/opt/IDEALX/imc/bin/../lib/IMC/HTTP/Server.pm:180) at IMC::HTTP::Server::process_request (/opt/IDEALX/imc/bin/../libexec/Net/Server.pm:108) at Net::Server::run_client_connection (/opt/IDEALX/imc/bin/../libexec/Net/Server/PreFork.pm:255) at Net::Server::PreFork::run_child (/opt/IDEALX/imc/bin/../libexec/Net/Server/PreFork.pm:210) at Net::Server::PreFork::run_n_children (/opt/IDEALX/imc/bin/../libexec/Net/Server/PreFork.pm:412) at Net::Server::PreFork::coordinate_children (/opt/IDEALX/imc/bin/../libexec/Net/Server/PreFork.pm:369) at Net::Server::PreFork::run_parent (/opt/IDEALX/imc/bin/../libexec/Net/Server/PreFork.pm:135) at Net::Server::PreFork::loop (/opt/IDEALX/imc/bin/../libexec/Net/Server.pm:82) at Net::Server::run (/opt/IDEALX/imc/bin/imc-server:25) Gruss und Danke Andreas
Hallo Andreas, hallo Leute, Am Samstag, 6. August 2005 15:50 schrieb Andreas Bauer:
Christian Boltz schrieb:
Ändere mal das Startscript und binde statt /etc/init.d/functions die /etc/rc.status ein - mit etwas Glück sind die enthaltenen Funktionen kompatibel.
Hab ich mit sehr viel Erfolg gemacht. Das Script bleibt nur noch an Zeile 42 hängen und das ist wahrscheinlich die imc.xml:
amd:~ # /opt/IDEALX/imc/etc/init.d/imc-server start Starting imc-server: /opt/IDEALX/imc/etc/init.d/imc-server: line 42: daemon: command not found ^^^^^^^^^^^^^^^^^^^^^^^^^
Probiers mal mit startproc statt daemon - siehe auch hierzu /etc/init.d/skeleton ;-)
Meine /opt/IDEALX/imc/etc/imc.xml: [...]
Die hat mit obigem Problem genau gar nichts zu tun ;-) Gruß Christian Boltz -- 2.-5.9.2005: Weinfest in Insheim Bei der Landjugend: Liquid, AH-Band und Deafen Goblins Mehr Infos: www.Landjugend-Insheim.de
participants (2)
-
Andreas Bauer
-
Christian Boltz