[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opensuse
Subject:    Re: [opensuse] Re: useradd.local with ldap
From:       Ralf Haferkamp <rhafer () suse ! de>
Date:       2006-06-19 14:22:27
Message-ID: 200606191622.27648.rhafer () suse ! de
[Download RAW message or body]

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: opensuse-unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-help@opensuse.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic