Bluehost.com Web Hosting $6.95

[Samba] tilde username

This is a discussion on [Samba] tilde username within the Samba forums, part of the Networking and Network Related category; Hi I use winbind with ADS security for authentication. If I write "ls -la ~username" in bash or ...


Go Back   Usenet Forums > Networking and Network Related > Samba

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-01-2008
Urs Golla
 
Posts: n/a
Default [Samba] tilde username

Hi

I use winbind with ADS security for authentication. If I write "ls -la
~username" in bash or ksh and press TAB or escape to resolve the
HOMEDIR the shell hangs until I cancel with Ctrl+C. After that I have
to restart winbind!
If I press enter after "ls -la ~username" it works. I use
samba3-winbind-3.0.28-35 on RHEL4U6 (32bit). Any idea?

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

Reply With Quote
  #2 (permalink)  
Old 07-01-2008
John Hodrien
 
Posts: n/a
Default Re: [Samba] tilde username

On Tue, 1 Jul 2008, Urs Golla wrote:

> Hi
>
> I use winbind with ADS security for authentication. If I write "ls -la
> ~username" in bash or ksh and press TAB or escape to resolve the
> HOMEDIR the shell hangs until I cancel with Ctrl+C. After that I have
> to restart winbind!
> If I press enter after "ls -la ~username" it works. I use
> samba3-winbind-3.0.28-35 on RHEL4U6 (32bit). Any idea?


Speaking from experience with a large AD. What did you expect? If you're tab
completing a username, then because of limitation in the POSIX interface,
you've just asked AD to return you information on all users. That's not a
quick operation. If I were you, I'd disable this enumeration as you *really*
don't need it.

winbind enum users = yes
winbind enum groups = yes

jh

--
"A little knowledge that /acts/ is worth infinitely more than much knowledge
that is idle." -- Kahil Gibran
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba

Reply With Quote
  #3 (permalink)  
Old 07-01-2008
Urs Golla
 
Posts: n/a
Default Re: [Samba] tilde username

Hi

the problem is, if one of the developers does a "cd ~username<TAB>"
winbind hangs for ALL users and needs to be restartet. I think I will
disable the user/group enumeration in smb.conf.

cheers

On Tue, Jul 1, 2008 at 5:10 PM, Rob Shinn <rob.shinn@gmail.com> wrote:
>
> On Tue, July 1, 2008 9:49 am, Urs Golla wrote:
>> Hi
>>
>> I use winbind with ADS security for authentication. If I write "ls -la
>> ~username" in bash or ksh and press TAB or escape to resolve the
>> HOMEDIR the shell hangs until I cancel with Ctrl+C. After that I have
>> to restart winbind!
>> If I press enter after "ls -la ~username" it works. I use
>> samba3-winbind-3.0.28-35 on RHEL4U6 (32bit). Any idea?

>
> Yep. You just asked AD to return all the users, because ithe shell is
> trying to complete the username first. Try "cd ~username/<TAB>" instead, if
> you want only homedir completion.

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

Reply With Quote
  #4 (permalink)  
Old 07-01-2008
John Hodrien
 
Posts: n/a
Default Re: [Samba] tilde username

On Tue, 1 Jul 2008, Urs Golla wrote:

> Hi
>
> the problem is, if one of the developers does a "cd ~username<TAB>"
> winbind hangs for ALL users and needs to be restartet. I think I will
> disable the user/group enumeration in smb.conf.


You're not wrong that it sucks. There's a lack of threading someone in the
deal. While you should expect this to be slow (although with a better
defined interface, you could turn it into a reasonable search, rather than
simply return all users), you shouldn't expect it to turn your machine into an
unusable lump until it completes.

I'd disable enumeration on anything but the smallest domain, and I'd do the
same with nss_ldap (which suffers just the same).

jh

--
"The average PhD thesis is nothing but a transference of bones from one
graveyard to another." -- J Frank Dobie
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 01:53 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0