Menu

KSambaPlugin, config files and Kiosk

Help
2005-08-29
2013-03-13
  • Open Source Services

    We are trying KSambaPlugin with Novell Linux Desktop 9 (it's a SUSE Professional 9.1 based distro) with KDE 3.2

    We would like to apply some restrictions on tabs and fields displayed by KSambaPlugin to user, but inspecting RPM seems no config file is installed by KSambaPlugin in
    /opt/kde3/share/config.

    Where configuration is saved?
    Any experience with KSambaPlugin and Kiosk?

    Thanks, regards

     
    • Jan Schäfer

      Jan Schäfer - 2005-08-29

      Hi,

      I am sorry, but there is no such configuration file for KSambaPlugin. But I can think of a way to disable certain options.
      KSambaPlugin uses the program testparm from Samba to find out which options are supported by the installed Samba version.
      The exact call for Samba 3.x is

      testparm -s -v

      for Samba 2.x without the -v parameter.

      testparm lists all possible options of the Samba server.
      You could write a wrapper script that removes some of
      the output of testparm. All not existing options
      will then be disabled in KSambaPlugin.

      Greetings,

         Jan

       
      • Open Source Services

        Your hint is very precious, can you help us with some more information?
        How can we pick-up the list of parameters tested by KSambaPlugin via "testparm"?
        Once we had the list, we should be able to perform the tests.

        Thanks, regards

         
        • Jan Schäfer

          Jan Schäfer - 2005-08-30

          this is very simple.
          the output of testparm looks like this:

          ...
          # Global parameters
          [global]
                  dos charset = CP850
                  unix charset = UTF-8
                  display charset = LOCALE
                  workgroup = TUX-NET
                  realm =
                  ...
          [...]
                  ...

          KSambaPlugin only reads the entries of the
          [global] section.
          It reads the entries line-by-line.
          The line format is
          <name> = <value>
          Every <name> is read by KSambaPlugin and registered as an existing Samba option.
          Only options that are registered are enabled in
          KSambaPlugin, all others are disabled.

          However, there might be a problem. KSambaPlugin
          also uses the output of testparm to get the default
          values for options not specified in the smb.conf file.
          So for missing options, KSambaPlugin cannot show
          the correct default value. But I think you can live
          with that.

          Greetings,
            
                 Jan

           

Log in to post a comment.