[opensuse] useradd.local with ldap
Hello, I've users managed by ldap on SL-10.1 and I would like to do some tasks whenever a user is added or deleted with YaST. It seems, that /usr/sbin/useradd.local is not called. Is there another way, to do this? TIA for any hints! Cheers, Peter -- http://pmrb.free.fr/contact-DD/ --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-unsubscribe@opensuse.org For additional commands, e-mail: opensuse-help@opensuse.org
On Monday 19 June 2006 12:48, Peter Münster wrote:
Hello,
I've users managed by ldap on SL-10.1 and I would like to do some tasks whenever a user is added or deleted with YaST. It seems, that /usr/sbin/useradd.local is not called. The YaST Usermanagement module doesn't use useradd to create LDAP users. It's using a Perl API that makes direct LDAP operations.
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.
-- Ralf Haferkamp SUSE LINUX Products GmbH, Maxfeldstrasse 5, D-90409 Nuernberg T: +49-911-74053-0 F: +49-911-74053575 - Ralf.Haferkamp@suse.com --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-unsubscribe@opensuse.org For additional commands, e-mail: opensuse-help@opensuse.org
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".) Cheers, Peter -- http://pmrb.free.fr/contact-DD/ --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-unsubscribe@opensuse.org For additional commands, e-mail: opensuse-help@opensuse.org
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
participants (2)
-
Peter Münster
-
Ralf Haferkamp