[Samba] delete user script
Larry McElderry
larry at ptcoupling.com
Thu Sep 15 16:14:42 GMT 2005
As a follow up, changing the "ldap delete dn = no" did allow the smbldap-userdel script to work, but of course, now it leaves the
ldap posix entries.
I guess I'm just going to have to write my own script.
-----Original Message-----
From: Larry McElderry [mailto:larry at ptcoupling.com]
Sent: Thursday, September 15, 2005 11:04 AM
To: Samb Mail List
Subject: RE: [Samba] delete user script
Yes,
ldap delete dn = Yes
Actually, everything is deleted (except home directories).
But you gave me an idea. I reset ldap delete dn to No and retested. I still get the numerous "Connection to LDAP server failed"
messages, but the delete user script now executes.
So apparently, ldapsam does it's deleting before calling the delete user script.
Larry
-----Original Message-----
From: samba-bounces+larry=ptcoupling.com at lists.samba.org
[mailto:samba-bounces+larry=ptcoupling.com at lists.samba.org]On Behalf Of
Bruno Guerreiro
Sent: Thursday, September 15, 2005 10:47 AM
To: 'larry at ptcoupling.com'; Samb Mail List
Subject: RE: [Samba] delete user script
Hi,
In order to have samba deleting everything from ldap you must have:
ldap delete dn = yes
By default it's no.
Are you sure everything is working correctly?
It seems that samba isn't even able to connecto to the LDAP server.
Another thing. Do you belong to the administrators group?
Best Regards,
Bruno Guerreiro
>-----Original Message-----
>From: Larry McElderry [mailto:larry at ptcoupling.com]
>Sent: quinta-feira, 15 de Setembro de 2005 16:37
>To: Samb Mail List
>Subject: [Samba] delete user script
>
>
>Does anyone know what the unix UID is deleting a user in USRMGR?
>
>I'm using Samba with ldap and while I can create users just
>fine with usrmgr (logged in as myself, but when I delete a user, it
>seems to have trouble running my "delete user script"
>
>My samba log shows:
>[2005/09/15 10:19:42, 1] lib/smbldap.c:another_ldap_try(1011)
> Connection to LDAP server failed for the 15 try!
>[2005/09/15 10:19:43, 0] lib/smbldap.c:smbldap_open(882)
> smbldap_open: cannot access LDAP when not root..
>[2005/09/15 10:19:43, 0] passdb/pdb_ldap.c:ldapsam_setsamgrent(2763)
> ldapsam_setsamgrent: LDAP search failed: Timed out
>[2005/09/15 10:19:43, 0]
>passdb/pdb_ldap.c:ldapsam_enum_group_mapping(2828)
> ldapsam_enum_group_mapping: Unable to open passdb
>[2005/09/15 10:19:43, 0] rpc_server/srv_samr_nt.c:smb_delete_user(3810)
> smb_delete_user: Running the command
>`/etc/samba/smbldap/smbldap-userdel -r 'test'' gave 6
>[2005/09/15 10:19:43, 0] lib/smbldap.c:smbldap_open(882)
> smbldap_open: cannot access LDAP when not root..
>
>The ldap server is setup to allow my uid full access to the
>database. Is it possible that the ldap record is deleted before the
>delete script is called?
>
>Using Sambe 3.0.14a
>SMB.CONF excerpt
>add user script = /etc/samba/smbldap/smbldap-useradd -m '%u'
>delete user script = /etc/samba/smbldap/smbldap-userdel -r '%u'
>--------------------
>
>
>--
>To unsubscribe from this list go to the following URL and read the
>instructions: https://lists.samba.org/mailman/listinfo/samba
>
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
More information about the samba
mailing list