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 -->