On Monday 19 June 2006 16:06, Peter Münster wrote:
> On Mon, 19 Jun 2006, Ralf Haferkamp wrote:
> > > Is there another way, to do this?
> >
> > The Perl API is extensible through plugins. It might be possible to code
> > a plugin that does what you need (e.g. maybe just call useradd.local from
> > the plugin).
> > For an example plugin you could look at
> > /usr/share/YaST2/modules/UsersPluginSamba.pm
> > which is part of the yast2-samba-server package.
>
> Thanks!
> Is there some documentation how to integrate such a plugin into YaST?
> (In fact, I just want to call "smbpasswd -an $user" and
>  "smbpasswd -x $user".)
You could use the already existing SambaUsers Plugin for that. Though it does 
not use smbpasswd to create the Samba-Accounts. 
It seems that the SambaUsers Plugin is only available in expert mode. To 
enable it you need to set "ui_mode" to "expert" in the [globals] section 
of /etc/YaST2/ProductFeatures.
After that you should see the Plugin listed in the Plugins-Tab of the YaST 
Users Management Module.
If you want to code your own plugin you could just use UsersPluginSamba.pm as 
an example.

-- 
Ralf

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to