RE: 3.0 requires an admin account to join samba to a domain?

2002-12-04 Thread Ken Cross
To Jerry's original question: it seems to fail without an admin username/pw. With the old smbpasswd, it would work if a machine account was first set up on the PDC -- now it doesn't. Ken -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Gerald (Jerry)

RE: Memory leak in smbd

2002-12-16 Thread Ken Cross
) Carter Sent: Monday, December 16, 2002 9:11 AM To: Ken Cross Cc: [EMAIL PROTECTED] Subject: Re: Memory leak in smbd -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sat, 14 Dec 2002, Ken Cross wrote: Guys: While running NetBench against SAMBA_3_0, there appears to be a memory leak. The smbd

Winbindd problem enumerating lots of groups

2003-01-05 Thread Ken Cross
= 0, start = *num_entries; -- here start is being re-initialized every time through the loop. It mustn't be. The fix is easy - move it to the top of the routine a few lines up: uint32 start = 0; Hope this helps anyone else battling this problem. Ken Cross Network Storage Solutions

RE: Winbindd problem enumerating lots of groups

2003-01-05 Thread Ken Cross
the loop. Another good data point is the fact that it was broken before I changed it and worked after. ;-) Ken -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of [EMAIL PROTECTED] Sent: Sunday, January 05, 2003 11:03 PM To: Ken Cross Cc: [EMAIL PROTECTED

RE: Unnecessary NetBIOS domain lookups - fix to ads_init

2003-01-14 Thread Ken Cross
strcasecmp(lp_workgroup(), workgroup) != 0) { ads-server.foreign = 1; } Ken -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Ken Cross Sent: Saturday, January 11, 2003 1:44 PM To: [EMAIL PROTECTED] Subject: Unnecessary NetBIOS domain

False positive from net ads testjoin

2003-01-17 Thread Ken Cross
Samba critters: Running with SAMBA_3_0, the following sequence gives incorrect results from the last net ads testjoin: # net ads testjoin -P ERROR: Unable to fetch machine password # net ads join -U ... Joined 'KJCTST' to realm 'WIN2DOM.LOCAL' # net ads testjoin -P Join is OK #

Core dump of net -- fix to ldap.c

2003-01-18 Thread Ken Cross
I've been having a problem with net crashing in SAMBA_3_0 and OpenLDAP 2.0.27: assertion entry != NULL failed: file getvalues.c, line 93, function ldap_get_values_len Abort trap (core dumped) I traced the problem to the ads_set_machine_sd routine in ldap.c. It wasn't checking the return from

RE: Auth question.

2003-01-22 Thread Ken Cross
I'm pretty sure that Kerberos uses port 88, but that's just for authentication. Port 445 is used for connecting to shares. We've been running tests blocking ports. With ports 137 - 139 and 445 blocked for UDP and TCP, the join fails but the computer name is still entered in the AD. With just

Finding group members - fix to winbindd_ads.c

2003-01-23 Thread Ken Cross
records is the RID of the primary group. That should be included in enumerating the members of any group. The patch below fixes this. Ken Cross Network Storage Solutions # cvs diff -pu winbindd_ads.c Index: winbindd_ads.c === RCS

RE: Finding group members - fix to winbindd_ads.c

2003-01-23 Thread Ken Cross
Hmm ... the helpful email client wrapped some of the lines. The patch is attached. Ken -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Ken Cross Sent: Thursday, January 23, 2003 11:01 PM To: [EMAIL PROTECTED] Subject: Finding group members - fix

NetBSD supports shared libraries, too

2003-01-29 Thread Ken Cross
That builds the libraries. Now, how do you get the utilities to link to them? Thanks, Ken Cross Network Storage Solutions

RE: Finding group members - fix to winbindd_ads.c

2003-01-31 Thread Ken Cross
Andrew: - firstly, if the destination of this call is the unix group membership, then we don't want 'primary' users added to the sups list, as the unix primary group should show this. The destination is programmatic -- the user does what he wants with the results of a call to

RE: Finding group members - fix to winbindd_ads.c

2003-02-01 Thread Ken Cross
to either an NT domain or AD to return the same thing. It seems like they should be consistent. Ken -Original Message- From: Andrew Bartlett [mailto:[EMAIL PROTECTED]] Sent: Friday, January 31, 2003 5:47 PM To: Ken Cross Cc: 'Andrew Bartlett' Subject: RE: Finding group members - fix

Using shared libraries?

2003-02-05 Thread Ken Cross
Maybe a dumb question, but... libsmbclient.so is being built in bin, but nothing seems to be linking to it. I tried make installclientlib, which installed it, but no change. Is there some trick to get it to be used? (NetBSD with SAMBA_3_0) Thanks, Ken

RE: Using shared libraries?

2003-02-05 Thread Ken Cross
Pretty standard: -l smbclient You may need -L libdir if not standard Ken -Original Message- From: Richard Sharpe [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 05, 2003 11:26 AM To: Jelmer Vernooij Cc: Ken Cross; 'Multiple recipients of list SAMBA-TECHNICAL' Subject: Re: Using

RE: Using shared libraries?

2003-02-05 Thread Ken Cross
Sure, but my original question (which was answered) was whether Samba used it. Apparently not. Ken -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Richard Sharpe Sent: Wednesday, February 05, 2003 12:50 PM To: Ken Cross Cc: 'Ken Cross'; 'Jelmer

REPOST: Finding group members - fix to winbindd_ads.c

2003-02-08 Thread Ken Cross
a patch if it seems to have been forgotten, so... Ken Cross Network Storage Solutions Index: winbindd_ads.c === RCS file: /cvsroot/samba/source/nsswitch/winbindd_ads.c,v retrieving revision 1.43.2.7 diff -p -u -r1.43.2.7

RE: REPOST: Finding group members - fix to winbindd_ads.c

2003-02-08 Thread Ken Cross
No problem, Jeremy -- I understand completely. Thanks for the response. Ken -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 08, 2003 1:00 PM To: Ken Cross Cc: 'Multiple recipients of list SAMBA-TECHNICAL' Subject: Re: REPOST: Finding

Why reset winbindd_cache.tdb?

2003-02-09 Thread Ken Cross
question is: do we really need to re-init the winbindd cache every time it starts? It seems like the sequence number is a pretty effective way to manage aging the cache. I hacked it where it doesn't truncate the cache at startup and it seems to work very well. What am I missing? Thanks, Ken Cross

RE: Why reset winbindd_cache.tdb?

2003-02-09 Thread Ken Cross
Potter [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 09, 2003 5:03 PM To: Ken Cross Cc: 'Multiple recipients of list SAMBA-TECHNICAL' Subject: Re: Why reset winbindd_cache.tdb? On Sun, Feb 09, 2003 at 03:53:05PM -0500, Ken Cross wrote: We have a site with SAMBA_3_0 where it takes 12-15

RE: REPOST: Finding group members - fix to winbindd_ads.c

2003-02-10 Thread Ken Cross
]] Sent: Monday, February 10, 2003 7:20 AM To: Ken Cross Cc: 'Multiple recipients of list SAMBA-TECHNICAL' Subject: Re: REPOST: Finding group members - fix to winbindd_ads.c Ken Cross wrote: Currently, if you do WINBINDD_GETGRNAM to an NT domain using RPC, you get *all* the members of a group

Enumerating from trusted domain - fix to winbindd_util.c

2003-02-11 Thread Ken Cross
, but that would have been a slightly bigger deal to patch. Ken Cross Network Storage Solutions Index: winbindd_util.c === RCS file: /cvsroot/samba/source/nsswitch/winbindd_util.c,v retrieving revision 1.73.2.13 diff -p -u -r1.73.2.13

Dual winbind daemons - fix to winbindd_dual.c

2003-02-11 Thread Ken Cross
] nsswitch/winbindd_idmap.c:winbindd_idmap_init(438) winbindd_idmap_init: Unable to open idmap database and then becomes a zombie. The one-line fix below closes idmap before calling winbind_setup_common. BTW, I haven't really had a chance to test it -- does the dual daemon thing work well? Ken

RE: winbindd losing trust relationship once in a while (Samba 3.0)

2003-02-12 Thread Ken Cross
That patch (or the one that Tim is submitting) should fix it. Without it, the wbinfo -m action clears the trusted domain list, but it get restored within 5 minutes. Note that the patch is to the cvs version -- it may need tweaking for a20 or a21. Ken -Original Message- From: [EMAIL

RE: Does 3.0 have the same problem? (Re: Problem with nt aclsupport when saving Excel or Word Files)

2003-02-12 Thread Ken Cross
I'm quite sure it does. Our solution was to create a default ACL on the directory which set the appropriate ACL on files created in that directory. This may or may not work depending on the file system implementation of ACLs. Ken -Original Message- From: [EMAIL PROTECTED]

RE: winbindd losing trust relationship once in a while (Samba 3.0)

2003-02-12 Thread Ken Cross
The patch works on SAMBA_3_0 as of 5 minutes ago. How did you patch it manually? The messages you see below are normal and don't indicate any real problems. Ken -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Nir Soffer Sent: Wednesday, February 12,

Winbindd limited by select

2003-02-12 Thread Ken Cross
. This could be a build option, but it might be much simpler to hard-code it in local.h, which is what I did to fix it. Can somebody check the implications of this on Solaris, HPUX, etc.? Thanks, Ken Cross Network Storage Solutions

RE: init_unistr2 length calculation

2003-02-12 Thread Ken Cross
You're right -- sorry. (Going in the wrong direction.) Ken Ken Cross Network Storage Solutions Phone 865.675.4070 ext 31 [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Shirish Kalele Sent

RE: Winbindd limited by select

2003-02-12 Thread Ken Cross
We should probably do both. IMO, 256 (the default in NetBSD) is wy too low and we should have a way to increase it. OTOH, if something goes nuts, it should detect the fact that too many connections have occurred and log the error. Ken Ken Cross Network

RE: Winbindd limited by select

2003-02-15 Thread Ken Cross
FD_SETSIZE in the calling program was sufficient to fix the problem. Ken Ken Cross Network Storage Solutions Phone 865.675.4070 ext 31 [EMAIL PROTECTED] -Original Message- From: Michael Steffens [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 15

RE: Winbindd limited by select

2003-02-15 Thread Ken Cross
I was suggesting the other way around -- the number of winbindd fd's shouldn't be more than the max # of smbd's (well, maybe a *few* more). Ken -Original Message- From: Michael Steffens [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 15, 2003 11:18 AM To: Ken Cross Cc: 'Mike Sweet

RE: Winbindd limited by select

2003-02-15 Thread Ken Cross
Good point about non-smbd processes being winbindd clients. I've got some myself :-) Also agreed about benefits of shutting down idle connections -- just not done yet. Ken Ken Cross Network Storage Solutions Phone 865.675.4070 ext 31 [EMAIL PROTECTED

Make Admins be admin users

2003-02-19 Thread Ken Cross
-- those caused subtle problems. This applies to SAMBA_3_0. Ken Ken Cross Network Storage Solutions Phone 865.675.4070 ext 31 [EMAIL PROTECTED] Index: uid.c === RCS file: /cvsroot/samba/source/smbd

RE: Problems with the lack of a real RO bit with Samba ...

2003-02-19 Thread Ken Cross
Richard: Please define an appropriate ACL on the file. Yes, it could have significant impact. Is there are problem with the current way it's set (RO == owner r mode)? Ken Ken Cross Network Storage Solutions Phone 865.675.4070 ext 31 [EMAIL PROTECTED

RE: Make Admins be admin users

2003-02-20 Thread Ken Cross
if the domain changes. Hence the hack. Since we're trying to emulate a Windows environment, Windows admins expect to have certain privileges. Is there a better way to do this automatically? Ken Ken Cross Network Storage Solutions Phone 865.675.4070 ext 31

Nasty OU names - patch to ldap.c

2003-02-24 Thread Ken Cross
. Anybody know if this will break something? Ken Ken Cross Network Storage Solutions Phone 865.675.4070 ext 31 [EMAIL PROTECTED] Index: ldap.c === RCS file: /cvsroot/samba/source/libads/ldap.c,v

RE: Nasty OU names - patch to ldap.c

2003-02-24 Thread Ken Cross
In reply to myself: That's not a very general solution. You run into the same problem if the OU string contains /. I see two possibilities: supply the full OU string (yuck), or provide some means to escape characters. Any better ideas? Ken Ken Cross Network

RE: 3.0a21 and HEAD: only primary group of a domain user is set onsmbd

2003-03-04 Thread Ken Cross
Finding group members - fix to winbindd_ads.c around Feb 8. Ken Ken Cross Network Storage Solutions Phone 865.675.4070 ext 31 [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] amba.org] On Behalf Of Chere Zhou

RE: 3.0a21 and HEAD: only primary group of a domain user is set onsmbd

2003-03-05 Thread Ken Cross
Ken Cross Network Storage Solutions Phone 865.675.4070 ext 31 [EMAIL PROTECTED]

Joining domains specifying auth realm

2003-03-06 Thread Ken Cross
join AD1 -A AD2.COMPANY.COM -U username%password Or have I missed something fundamental? Ken Ken Cross Network Storage Solutions Phone 865.675.4070 ext 31 [EMAIL PROTECTED]

RE: [Samba] number of groups of NT account causes authenticationproblems

2003-03-05 Thread Ken Cross
NGROUPS_MAX statically would break. That meant almost everything in /sbin /usr/sbin and a lot of /bin and /usr/bin, not to mention libc. It's a pretty Big Deal. Ken Ken Cross Network Storage Solutions Phone 865.675.4070 ext 31 [EMAIL PROTECTED] -Original Message

[PATCH] Joining domains specifying auth realm

2003-03-14 Thread Ken Cross
Let's try this again. The previous patch I submitted didn't work in some configurations. (ads-auth.realm needs to be preserved over the ads_connect call.) This patch is for SAMBA_3_0. Ken Ken Cross Network Storage Solutions Phone 865.675.4070 ext 31 [EMAIL

RE: [PATCH] Joining domains specifying auth realm

2003-03-17 Thread Ken Cross
Andrew: Patch to HEAD below -- sorry, should have realized that. The reason I had to change it was that ads_set_machine_password uses ads-auth.realm to build the principal name. Should that be ads-config.realm? Ken Ken Cross Network Storage Solutions Phone

RE: [PATCH] Joining domains specifying auth realm

2003-03-17 Thread Ken Cross
BTW, the patch also includes two more lines of output for net ads info -- the KDC server and server time offset. I find them useful for helping to automate the join process. Ken Ken Cross Network Storage Solutions Phone 865.675.4070 ext 31 [EMAIL PROTECTED

RE: What to do when Windows client asks you to set permissions thatyou can't?

2003-03-19 Thread Ken Cross
Ken Cross Network Storage Solutions Phone 865.675.4070 ext 31 [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] amba.org] On Behalf Of Richard Sharpe Sent: Wednesday, March 19, 2003 5:00 PM To: [EMAIL PROTECTED] Subject: What to do when

RE: What permissions do you need to read a fike on Win2K?

2003-03-19 Thread Ken Cross
Right. In smbd/posix_acls.c the definition: #define FILE_SPECIFIC_WRITE_BITS (FILE_WRITE_DATA|FILE_APPEND_DATA|FILE_WRITE_EA|FILE_WRITE_ATTRIBUTES) is used to set the required perms in the ACL. Ken Ken Cross Network Storage Solutions Phone 865.675.4070 ext

Support for Multiple Data Streams?

2003-03-20 Thread Ken Cross
. Is this on anybody's To-Do list? Ken Ken Cross Network Storage Solutions Phone 865.675.4070 ext 31 [EMAIL PROTECTED]

RE: Support for Multiple Data Streams?

2003-03-20 Thread Ken Cross
). Ken Ken Cross Network Storage Solutions Phone 865.675.4070 ext 31 [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] amba.org] On Behalf Of Richard Sharpe Sent: Thursday, March 20, 2003 4:14 PM To: Christopher

Authentication through Transitive Trusts

2003-04-01 Thread Ken Cross
Ken Cross Network Storage Solutions Phone 865.675.4070 ext 31 [EMAIL PROTECTED]