[Samba] Issue in manipulating records with TDBTOOL

2010-12-17 Thread Mayuk De
Hi all,

I have run into an issue where I see some entries in winbindd which I would
not like to be present.

I have learnt that tdbtool would help me get rid of these unwanted entries,
but i simply haven't been able to do anything with it.

tdb> keys
key 46 bytes: S-1-5-21-160935111-2493731623-2036278074-1242
key 46 bytes: S-1-5-21-160935111-2493731623-2036278074-1225

..

tdb> show S-1-5-21-160935111-2493731623-2036278074-1242
fetch failed
tdb> show S-1-5-21-160935111-2493731623-2036278074-1225
fetch failed
tdb> show S-1-5-21-160935111-2493731623-2036278074-1225
fetch failed

Delete definitely fails as it simply cannot fecth/display the data releated
to a particular key.

Can anybody who has done this previously, sugesst the correct way to do it?

Thanks in advance!

Regards
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] TDB corruptions

2010-07-10 Thread Mayuk De
 Hi all,

We have been using samba 3.0.33 for some time now.
We notice that many a times tdb files get corrupted.

For instance, I happen to see the following case of tdb corruption many a
times.

We have samba boxes as member server to a windows PDC.
some times I see that some users are not able to login to access the shares
on samba machine.
That same user look up was succesful earlier , but now it fails.
If I remove the idmap_cache.tdb (after stopping samba) the problems gets
solved for the time being.
But the problem arises again after some days.

I have read in "samba how to" guide that we should run tdbbackup regularly
to overcome this tdb
corruption problem.
But I was wondering if this tdb corruption problem appears less in more
recent versions of samba.

If indeed tdb corruption problem has been solved or minimized in recent
versions, then our organization
would probably decide to upgrade to the newer version.
Is there any particular patch which we can apply for solving or minimizing
the idmap_cache.tdb corruption?
(I had tried to search for such a patch but could not find any).

Also, I know similar questions might have been asked in several forums, but
i have not seen any replies to
those questions. So I had to ask here. Hoping to get some kind response.

Thanks in advance!

Regards,
Mayuk
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Unable to solve the problem in setting up PDC for network

2010-06-02 Thread Mayuk De
Hi,

User and machine accounts can be added using pdbedit utility.
You can use the -m switch of pdbedit to add a machine account.
Refer http://samba.org/samba/docs/man/manpages-3/pdbedit.8.html for more
info on pdbedit.

You can also try specifying a "admin user" in your smb.conf and use that
user's credentials while joining.

Hope this helps :)

- Mayuk

On Wed, Jun 2, 2010 at 6:58 PM, Some One  wrote:

> Hi Guys,
>  Can you please tell me why is this failing to connect
>
> I'am running samba on Freebsd 8.
> I've pasted the testparm of samba.
>
> It first gave me unable to connect as a RPC
> and now it again gives me error that unknown user or password.
>
> ---
> CAN YOU TELL ME HOW TO SETUP MACHINE ACCOUNTS AND NORMAL SAMBA ACCOUNTS to
> connect XP PRO Machines./ IF THERE IS ANY PROBLEM WITH smb.conf?
> -
>
>
>
> server# testparm /usr/local/etc/smb.conf
> Load smb config files from /usr/local/etc/smb.conf
> Processing section "[homes]"
> Processing section "[netlogon]"
> Processing section "[Profiles]"
> Processing section "[printers]"
> Processing section "[tmp]"
> Processing section "[public]"
> Loaded services file OK.
> Server role: ROLE_DOMAIN_PDC
> Press enter to see a dump of your service definitions
>
> [global]
>workgroup = INET
>netbios name = INET
>server string = Server
>log file = /var/log/samba/log.%m
>max log size = 50
>add user script = /usr/sbin/useradd %u
>delete user script = /usr/sbin/userdel %u
>add group script = /usr/sbin/groupadd %g
>delete group script = /usr/sbin/groupdel %g
>delete user from group script = /usr/sbin/deluser %u %g
>add machine script = /usr/sbin/adduser -n -g machines -c Machine -d
> /dev/null -s /bin/false %u
>logon path = \\%L\Profiles\%U
>domain logons = Yes
>os level = 65
>domain master = Yes
>dns proxy = No
>wins support = Yes
>winbind trusted domains only = Yes
>
> [homes]
>comment = Home Directories
>read only = No
>browseable = No
>
> [netlogon]
>comment = Network Logon Service
>path = /usr/local/samba/lib/netlogon
>guest ok = Yes
>share modes = No
>
> [Profiles]
>path = /usr/local/samba/profiles
>guest ok = Yes
>browseable = No
>
> [printers]
>comment = All Printers
>path = /var/spool/samba
>printable = Yes
>browseable = No
>
> [tmp]
>comment = Temporary file space
>path = /tmp
>read only = No
>guest ok = Yes
>
> [public]
>comment = Public Stuff
>path = /home/samba
>write list = @staff
>read only = No
>guest ok = Yes
>
>
>
> ---
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba
>
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba