1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-10 13:57:47 +03:00

21616 Commits

Author SHA1 Message Date
Jeremy Allison
32b040fe05 r21663: Fix from the Wine guys: Robert Shearman <rob@codeweavers.com>
The background behind this patch is that we're using ntlm_auth with
Wine. Windows allows us to pass in a NULL domain and a username of the
form of "user@domain" and this is converted into an NTLMSSP_AUTH packet
with a NULL domain name and a username of the same form.
Jeremy.
2007-10-10 12:18:22 -05:00
Herb Lewis
5a7330cfe4 r21657: get rid of warning - not everyone understands %F 2007-10-10 12:18:22 -05:00
Jelmer Vernooij
7fdbf66976 r21655: Regenerate after pidl bugfix. 2007-10-10 12:18:22 -05:00
Jelmer Vernooij
7ce0c5d0cc r21652: Fix samba3-specific initialization 2007-10-10 12:18:22 -05:00
Jelmer Vernooij
0db258c600 r21651: Add ndrdump to samba 3. This only works from external source at the
moment. To use, use something like:

./bin/ndrdump -l bin/smbd winreg winreg_EnumValue in <filename>

or to see what functions are available:

./bin/ndrdump -l bin/smbd winreg
2007-10-10 12:18:21 -05:00
James Peach
4d5654a8ab r21647: Allow unit on for size parameters. 2007-10-10 12:18:21 -05:00
Jeremy Allison
b9408304db r21646: Patch from SATOH Fumiyasu <fumiyas@osstech.co.jp>
- add minsize parameter. Bug #4409.
Jeremy.
2007-10-10 12:18:21 -05:00
Jeremy Allison
98f4b64574 r21645: Make posix_unlink work - on open files too !
Jeremy.
2007-10-10 12:18:21 -05:00
Jeremy Allison
3c47a5ef25 r21644: Allow mkdir on platforms with no O_DIRECTORY.
Add proper debug to all possible setfilepathinfo
functions.
Jeremy.
2007-10-10 12:18:21 -05:00
Jeremy Allison
334b34f131 r21643: Put the correct bits on the wire for posix_mkdir.
We're not yet deleting open files on unlink. Investigating...
Jeremy.
2007-10-10 12:18:20 -05:00
Volker Lendecke
2186e276a0 r21642: Fix bug 4365. Please note that this was only tested with Vista so far, it
needs testing with other clients as well. I'm afraid I'm visiting a conference
tomorrow and saturday, so I'd be happy to get support in this.

Thanks,

Volker
2007-10-10 12:18:20 -05:00
Jeremy Allison
9858e5b725 r21641: Add test code for POSIX pathname calls into smbclient.
Jeremy.
2007-10-10 12:18:20 -05:00
Jeremy Allison
6a0f6fde0a r21640: Fix the build for broken platoforms without O_DIRECT or O_DIRECTORY.
Jeremy.
2007-10-10 12:18:19 -05:00
Jeremy Allison
6457d66b9a r21639: Add in implementations of POSIX open/mkdir/unlink/rmdir.
Jeremy.
2007-10-10 12:18:19 -05:00
Jeremy Allison
f0c8488d38 r21638: Change POSIX_UNLINK to allow clients to differentiate
between unlink/rmdir calls.
Jeremy.
2007-10-10 12:18:19 -05:00
Jim McDonough
f3a8048a62 r21637: Get "password never expires" account policy working.
0x8000000000000000LL is "infinity" to NT and should
not be converted numerically to time_t.
2007-10-10 12:18:19 -05:00
Gerald Carter
518052be38 r21636: Was almost right before. We have to specify the short domain name to get the
Krb5 config stuff to work in the server affinity settings.
2007-10-10 12:18:19 -05:00
Gerald Carter
78bf4042dd r21635: Don't free talloc()'d memory. I wish people would check the callers
when changing how memory is allocated.
2007-10-10 12:18:19 -05:00
Gerald Carter
256f36dce3 r21633: First real fix from me found during the bug hunt.
ads_cached_connection() does not call get_dc_name()
before ads_connect() and therefore does not setup
the environment to look at krb5.conf.DOMAIN file
before sending the TGT request.  The failure I'm seeing
occurs ni a multi-DC domain where we get back preuath
failed after we just joined the domain.
2007-10-10 12:18:18 -05:00
Gerald Carter
82dc19f844 r21632: Remove ununsed variable 2007-10-10 12:18:18 -05:00
Gerald Carter
d68b2910c8 r21626: Fix memory leak on error path noticed by
SATOH Fumiyasu <fumiya@samba.gr.jp>
2007-10-10 12:18:18 -05:00
Simo Sorce
0de7472428 r21623: Fix copy/paste error 2007-10-10 12:18:18 -05:00
Gerald Carter
05886edb35 r21622: Fix bad merge caught by James. 2007-10-10 12:18:18 -05:00
Gerald Carter
15b13dfe81 r21616: Delay initialization of idmap and nss_info backends until necessary
so they can honor the offline logon state.
2007-10-10 12:18:18 -05:00
Gerald Carter
5575845952 r21615: don't wait until the last second to try to renew a Krb5 ticket as it is took late 2007-10-10 12:18:17 -05:00
Gerald Carter
3644bd9996 r21614: The memset() called on aligned memory was causing crashes
on x86_64 Linux boxes.  Since it is not needed, just use malloc()
on Linux.
2007-10-10 12:18:17 -05:00
Gerald Carter
a9028612a3 r21613: perform variable subsitution on home directories and shells provided by the nss_info backend 2007-10-10 12:18:17 -05:00
Gerald Carter
7f0ba72e05 r21612: Make pam_winbind do the same username fixup on AIX as the WINBINDD
LAM module does to work around a system that does not support
>8 character usernames.  Without the change, pam_winbind tries
to authenticate _#uid in the domain.
2007-10-10 12:18:17 -05:00
Gerald Carter
4c53d300fa r21611: I'm not entirely sure about this patch but it is working.
su - DOM\user was unable to set the process crendentials
without listing the "id" and other attributes in the attrlist[].
More fixes to come, but I didn't want this to get lost.
2007-10-10 12:18:17 -05:00
Gerald Carter
c4621de39b r21610: put libraries preceeding the @SONAMEFLAG@ variable as on AIX this ends up commenting out the remainder of the line and we have missing libraries in the link 2007-10-10 12:18:17 -05:00
Jeremy Allison
df07a662e3 r21609: Fix memory leaks in error code paths (and one in winbindd_group.c).
Patch from Zack Kirsch <zack.kirsch@isilon.com>.
Jeremy.
2007-10-10 12:18:16 -05:00
Jeremy Allison
cbe725f1b0 r21608: Fix a couple of memleaks in error code paths before
Coverity finds them :-)
Jeremy.
2007-10-10 12:18:16 -05:00
Simo Sorce
51d296f251 r21607: While committing I saw I had not newline terminated this string ... 2007-10-10 12:18:16 -05:00
Simo Sorce
5b4838f62a r21606: Implement escaping function for ldap RDN values
Fix escaping of DN components and filters around the code
Add some notes to commandline help messages about how to pass DNs

revert jra's "concistency" commit to nsswitch/winbindd_ads.c, as it was
incorrect.
The 2 functions use DNs in different ways.

- lookup_usergroups_member() uses the DN in a search filter,
and must use the filter escaping function to escape it
Escaping filters that include escaped DNs ("\," becomes "\5c,") is the
correct way to do it (tested against W2k3).

- lookup_usergroups_memberof() instead uses the DN ultimately as a base dn.
Both functions do NOT need any DN escaping function as DNs can't be reliably
escaped when in a string form, intead each single RDN value must be escaped
separately.

DNs coming from other ldap calls (like ads_get_dn()), do not need escaping as
they come already escaped on the wire and passed as is by the ldap libraries

DN filtering has been tested.
For example now it is possible to do something like:
'net ads add user joe#5' as now the '#' character is correctly escaped when
building the DN, previously such a call failed with Invalid DN Syntax.

Simo.
2007-10-10 12:18:16 -05:00
Jeremy Allison
5ed61d5af6 r21605: Fix small typo noticed by Raúl Sánchez Siles <rss@barracuda.es>.
Jeremy.
2007-10-10 12:18:16 -05:00
Jeremy Allison
4a04555e23 r21604: I got this wrong also in libsmb :-(.
Jeremy.
2007-10-10 12:18:15 -05:00
Jeremy Allison
29761173ee r21603: Horrible backwards compatibility hack as an old server bug
allowed a CIFS client bug to remain unnoticed :-(.
I suck.
Jeremy.
2007-10-10 12:18:15 -05:00
Volker Lendecke
5ef0286b56 r21581: Add an error code I just got 2007-10-10 12:18:15 -05:00
Jeremy Allison
645b0438dd r21577: Remove unneeded #define (part of earlier patch that was
removed).
Jeremy.
2007-10-10 12:18:15 -05:00
Jeremy Allison
b81c5c6adc r21576: Patch based on work from Todd Stecher <todd.stecher@isilon.com>
to allow client to fragment large SPNEGO blobs (large krb5
tickets). Tested against W2K3R2. Should fix bug #4400.
Jeremy.
2007-10-10 12:18:14 -05:00
Jeremy Allison
8d45f1f3b5 r21569: Fix bug reported by Martin Zielinski <mz@seh.de>
where return value was incorrectly initialized.
Jeremy.
2007-10-10 12:18:14 -05:00
Jeremy Allison
b7d91ec1b2 r21566: If we're going to be broken, at least be *consistently*
broken :-). This will do until Simo fixes the escape
calls properly.
Jeremy.
2007-10-10 12:18:14 -05:00
Jelmer Vernooij
9a9b942167 r21565: Import ndrdump (doesn't compile yet, needs table support functions). 2007-10-10 12:18:14 -05:00
Volker Lendecke
4423880ff4 r21563: Fix a memleak: We only need dispinfo structs for "our" and for the builtin
domain. Without this patch we leaked a DISPINFO for the (NULL) domain per
samr_connect*() call.

Volker
2007-10-10 12:18:14 -05:00
Jelmer Vernooij
952f648d81 r21562: Regenerate gen_ndr after pidl changes. 2007-10-10 12:18:13 -05:00
Günther Deschner
76ba11d777 r21561: It makes absolutely no sense to call krb5_kt_resolve() two times
directly after another.

Guenther
2007-10-10 12:18:13 -05:00
Günther Deschner
28ce79629b r21560: Convert name_to_fqdn to BOOL.
Guenther
2007-10-10 12:18:13 -05:00
Günther Deschner
7b18a4730d r21558: Safe more indent, again no code changes.
Guenther
2007-10-10 12:18:13 -05:00
Günther Deschner
8ff0903a17 r21557: indent only fix. No code change.
Guenther
2007-10-10 12:18:13 -05:00
Günther Deschner
020601ea0a r21556: Remove superfluos return check in ads_keytab_verify_ticket().
Guenther
2007-10-10 12:18:13 -05:00