1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

8673 Commits

Author SHA1 Message Date
Gerald Carter
65e7b5273b sync'ing up for 3.0alpha20 release -
cvs2svn Import User
9a5541595f This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'. -
Jelmer Vernooij
70d9b71cea remove extern for AllowDebugChange since we don't use it -
Andrew Bartlett
25950dbb32 Fix the circular dependency that was preventing 'domain master = auto' (the
default) from working.

Andrew Bartlett
-
Andrew Bartlett
0e6babc306 Metze claims that without this his win2k server gets horribly confused looking
for all sorts of AD things in lp_realm().  We need to get some non-Win2k
NTLMSSP and chase this up a bit, but this will do for now.

(Hmm, this might affect NTLMv2 as well)

Andrew Bartlett
-
Andrew Bartlett
a198940ea6 Whenever we deal with adding machine/trusted domain accounts, always reset the
flag to what we expect.  This handles the 'upgrade' from unixsam beter (where
all $ terminated accounts are machines).

Andrew Bartlett
-
Jelmer Vernooij
4aea951102 Don't crash when a backend doesn't have a setsampwent function available - bug reported by metze -
Andrew Bartlett
f13e243f1a This patch from "Stefan (metze) Metzmacher" <metze@metzemix.de> cleans up
pdb_ldap and adds a 'ldap passwd sync' option.

The idea with this option is to do allow an ldap backend to do all the fancy
password hashing etc - and to tell smbd no to try and double-up.  Using 'ldap
passwd sync = only' will do this, but is not recommended unless such a backend
is in place...

Running 'ldap passwd sync = yes' just gets you the same as doing 'pam passwd
sync = yes' and having both PAM and pam_ldap correctly configured for 'magic
root' behaviour, but only using ldap connection, and one set of credentials.

This also gets us closer to allowing ldap to say 'password too short' etc,
which might assist in maintaining a consistant password policy.

Andrew Bartlett
-
Jelmer Vernooij
779aea5745 Fix debuglevel command-line argument -
Jelmer Vernooij
f0c0958757 Compile samtest with LIBADS_OBJ and PASSDB_OBJ... -
Jelmer Vernooij
237883d1e6 samtest should load smb.conf by default
add command-line option to samtest to specify alternate config file - use /dev/null
to don't load any config file..
add 'conf' command to load specified config file
-
Andrew Bartlett
d5303d5c08 At least try to get this function picked up by the autoprototyper -
Andrew Bartlett
760c0740ca Kill of Get_Pwnam_Modify and smb_getpwnam(). The latter assumes some things
that just don't apply any more - now that we always keep username and domain
seperate.  Also, the policy it was trying to permit is now implemented by the
auth code.

Andrew Bartlett
-
Andrew Bartlett
9c62d1312f Another patch from metze, towards his work on sam_ads.
See mx-ldap.sf.net for his current progress.
-
Andrew Bartlett
13f33e466e Header files should not include includes.h - therein lies maddness, particuarly
if we ever want to get rid of the magic macros.
-
Andrew Bartlett
c0925b6352 Actually pick up the kerberos libs in RedHat - the previous shell construct
didn't seem to work properly.

Andrew Bartlett
-
Andrew Bartlett
d9a91a4144 If adding a user to ldap, make sure we have the 'account' structural class, or
else we can't add to OpenLDAP 2.1
-
Andrew Bartlett
a3882a1925 Move to common user token debugging, and ensure we always print both the
NT_TOKEN and the unix credentials - as we incresingly use the NT stuff we want
to make it easy to check they don't get out of wack.

Andrew Bartlett
-
Andrew Bartlett
bb518a3bae Avoid a segfault in net join when you have not done an kinit, and it's falling
back to NTLMSSP.  We need to get the password out of the user, and this
eventually does.

Andrew Bartlett
-
Tim Potter
7ce782c20c The security descriptor in a PRINTER_INFO_2 could be NULL. (Bong?) -
Jeremy Allison
cfd1bf250b Merge of "profile acls" code.
Jeremy.
-
Gerald Carter
930c6710fe merge from APP_HEAD -
Jeremy Allison
f93a008f09 Hold lock on NEXTJOB record for a very short time. Jerry needs to add code
to make this rebust w.r.t. stored devicemodes.
Jeremy.
-
Jeremy Allison
38c67632ad Moved -ve cache check to correct place.
Jeremy.
-
Jelmer Vernooij
d312e1c2b4 enum_domains shouldn't crash when there are no domains available -
Jelmer Vernooij
0c01219850 Fix bug in get_methods_by_name
Fix bug in enum_domains
Add samtest commands:
 - lookup_sid
 - lookup_name
 - enum_domains
 - lookup_domain
-
Jelmer Vernooij
50d2527eed - Don't put pointer to sam_domain_handle in sam_methods but single domainsid and domainname
- Allocate sam_methods, set domain_sid, domain_name and backend_name in make_sam_methods_backend_entry instead of in the backend
- Remove sam_context and domain_sid pointers from the sam_init_function - we don't need those arguments anymore since they're
  available in sam_methods as well
-
Volker Lendecke
f0d7ac9feb This is a first working version of net rpc vampire. First do a net rpc
getsid, then join as a BDC, and then watch net rpc vampire suck out
the good stuff out of a PDC :-). It's not perfect, but it does quite a
bit for me. Watch out for more.

Volker
-
Tim Potter
0ad19825df Don't uppercase the username and domain in a session setup. -
Volker Lendecke
066b163bde Ok, what's this? Samba as a PDC wants to authenticate a user coming in
to a native NT member server. If the logoff time in the samlogon reply
is set to something else but infinity, the tree connect to the member
server comes back with 'bad uid'. In my traces, NT PDC sends
0x7fff.. always. Weird, but true.

I would really like others to double-check this. If you have questions
regarding the setup, feel free to ask!

Thanks!

Volker
-
Richard Sharpe
b53547bf66 Update some help. People keep forgetting that! -
Richard Sharpe
08c3e2b824 Add net getlocalsid [name] -
Volker Lendecke
b959419ed3 Ok, getting a bit more ambitious. Stop me, if this is wrong. ;-)
When creating a group you have to take care of the fact that the
underlying unix might not like the group name. This change gets around
that problem by giving the add group script the chance to invent a
group name. It then must only return the newly created numerical gid.

Volker
-
Volker Lendecke
42774a7753 Cosmetic fix for debug message. -
Volker Lendecke
a1bade0748 tdbdump also needs signal.h. Thanks to Guenther Deschner <gd@suse.de>
Volker
-
Volker Lendecke
f6ed429838 Add the ability to view/set the current local domain SIDs.
Volker
-
Gerald Carter
50752f84f2 * fix getpass check
* merge in AIX fixes from SAMBA_2_2
-
Richard Sharpe
40aea3fe94 Small, long overdue, fix for libsmbclient. -
Volker Lendecke
8c41b5cd1b Change parsing of policy and privs delta to what Ethereal says.
Volker
-
Volker Lendecke
9f7a16acf1 Sorry for the new parameter, but I think to really reflect what's coming
in via deltas, we need a way to set a user's primary group.

Volker
-
Jeremy Allison
f4845b0213 Merge back Richard's FreeBSD sendfile fixes.
Jeremy.
-
Jeremy Allison
5c4857d8e0 "@" is valid in NetBIOS domain names.
Jeremy.
-
Jelmer Vernooij
f1021cbc55 Add framework for samtest commands -
Gerald Carter
29be941104 reran autoconf -
Gerald Carter
cbb16eac0e CUPS merge from SAMBA_2_2 -
Andrew Tridgell
e8ff1c0819 change ADS negprot to match more closely the options used by w2k. This
affects the principal used and the order of SPNEGO OIDs
-
Andrew Tridgell
56b194e835 allow --with-krb5 to override the location of the kerberos libs on
redhat
-
Tim Potter
1bd2c6e144 remove proto headers on realclean -
Jeremy Allison
a77966645a Use sendfile in readbraw.
Jeremy.
-
Jelmer Vernooij
2fe72652ee Move functionality to check whether entries for lp_workgroup() and "BUILTIN"
exist and add them if necessary from check_correct_backend_entries into
sam_context_check_default_backends. The reason for this is that we don't
always want to have BUILTIN and lp_workgroup() in a sam_context, for example
when doing sam2sam. check_correct_backend_entries has been renamed to
'check_duplicate_backend_entries' since that's what it currently does.

The sam_context_check_default_backends() function is only called
by sam_get_static_context(BOOL reload) currently currently.
-