1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
Commit Graph

5562 Commits

Author SHA1 Message Date
Andrew Tridgell
18cf9ccba7 r8778: index on nCName in sam.ldb. This was costing us about 75% of the time in each smb login
(This used to be commit f6d24d063a)
2007-10-10 13:30:04 -05:00
Andrew Tridgell
d929f32dbe r8777: make sure that the tree connect is a child of the return cli state structure.
This fixes the BASE-DISCONNECT test
(This used to be commit 86fe5817b1)
2007-10-10 13:30:04 -05:00
Andrew Tridgell
528bb470bd r8776: fixed SMB connections for IP addresses, even when name resolve order
doesn't include 'host'
(This used to be commit 77a1e3076a)
2007-10-10 13:30:04 -05:00
Andrew Bartlett
41b6e94665 r8775: More SamSync work. This is really just mechanical...
I need to take a grip over the ForiegnSecurityPrincipals, as the
SamSync currently fails on adding some aliases and privilages because
it can't find their entry.

Andrew Bartlett
(This used to be commit 533e445353)
2007-10-10 13:30:04 -05:00
Andrew Tridgell
176ed87e48 r8774: make some gensec errors a bit less verbose
(This used to be commit 2134ca4755)
2007-10-10 13:30:04 -05:00
Andrew Tridgell
5f0c8df55a r8773: fixed another dependency on directory ordering in RAW-SEARCH
Thanks to andrew bartlett for helping to track this down (his was the
only system that hit this)
(This used to be commit 5edeb56bf0)
2007-10-10 13:30:03 -05:00
Andrew Bartlett
493fd92b20 r8772: Include the ldap ejs test in the standard 'make test'
Andrew Bartlett
(This used to be commit 4ade880dcf)
2007-10-10 13:30:03 -05:00
Andrew Bartlett
af48ca4810 r8771: Extend the SamSync code out to groups and aliases, as well as deleting.
Andrew Bartlett
(This used to be commit bf594c1022)
2007-10-10 13:30:03 -05:00
Rafal Szczesniak
b2ed6343cb r8761: Propagate changes in monitor messaging code.
rafal
(This used to be commit 5be8479d5c)
2007-10-10 13:30:03 -05:00
Rafal Szczesniak
a04e899bc0 r8760: Rework monitor messaging code a bit, as Metze once suggested.
enum type has now been replaced with unsigned 32-bit field and
message data is passed as void pointer.

This allows various extension implementers to plug their monitor
messages in more easily.

rafal
(This used to be commit 4a6ab58133)
2007-10-10 13:30:03 -05:00
Rafal Szczesniak
2440a008a8 r8759: Another couple of fields in usermod routine.
rafal
(This used to be commit 266aaacf0b)
2007-10-10 13:30:03 -05:00
Andrew Tridgell
8a94055deb r8753: fixed directory handling on systems that do not return . and .. as the
first two entries in a directory. This is what caused the FC3 system
shelob in the build farm to fail the RAW-UNLINK and RAW-SEARCH tests.
(This used to be commit f48abaaaca)
2007-10-10 13:30:02 -05:00
Andrew Bartlett
6d26a7114f r8752: With all the infrustructure done, details like a SamSync migration
into LDB are actually quite easy.

This brings us the users, and sets basic domain information.

You are expected to have provisioned with the settings for the target
domain, and have joined the domain as a BDC.  Then simply 'net
samsync'.

Now we just need to flesh out the delta types.

Andrew Bartlett
(This used to be commit 1e0f7792bb)
2007-10-10 13:30:02 -05:00
Andrew Tridgell
dc4af82432 r8750: drat, on some systems dirfd() is a macro
(This used to be commit d974bf3589)
2007-10-10 13:30:02 -05:00
Andrew Tridgell
ecc691041c r8749: for completeness, add rewinddir() and dirfd()
(This used to be commit ce022e4090)
2007-10-10 13:30:02 -05:00
Andrew Tridgell
27ab60f5d4 r8748: fixed build. Andrew, please check.
(This used to be commit 9411bd4e5e)
2007-10-10 13:30:01 -05:00
Andrew Tridgell
616ea8deb4 r8747: remove unused code
(This used to be commit 60a07da59d)
2007-10-10 13:30:01 -05:00
Andrew Tridgell
f92c000fc9 r8746: replace opendir/readdir/telldir/seekdir/closedir on systems where they
are broken (apparently all BSD systems). This breakage leads to unlink
on files in an open directory causing a later seekdir to miss
files. The bug happens due to a block boundary bug in the BSD libc
implementation of these calls.

This replacement code also fixes a severe memory usage problem with
telldir that can cause closedir() to take an arbitrary amount of time.

I have reported the bug in readdir to Greg Lehey (a FreeBSD maintainer)
(This used to be commit e1bf7c4279)
2007-10-10 13:30:01 -05:00
Andrew Bartlett
82f96542fa r8744: Split 'net samdump' out into a separate file
Work on the talloc memory tree, as I think talloc_reference and other
things were biting me.

Crush unions in the name of code reform. ;-)

Andrew Bartlett
(This used to be commit 2eadcf4669)
2007-10-10 13:30:01 -05:00
Andrew Tridgell
8fbcde9450 r8742: fixed handling of zero length names in mprObject()
(This used to be commit 8086c37df6)
2007-10-10 13:30:00 -05:00
Andrew Bartlett
44ff3305f8 r8741: Kill warnings about enums not fully enumerated, as we will never use
all the branches.

Andrew Bartlett
(This used to be commit 258e5e302e)
2007-10-10 13:30:00 -05:00
Andrew Bartlett
a7f9d9c5b8 r8740: Extend the rdn_name module to handle adding the rdn as an attribute. ie:
dn: cn=foo,ou=bar
objectClass: person

implies

dn: cn=foo,ou=bar
objectClass: person
cn: foo
(as well as a pile more default attributes)

We also correct the case in the attirbute to match that in the DN
(win2k3 behaviour) and I have a testsuite (in ejs) to prove it.

This module also found a bug in our provision.ldif, so and reduces
code complexity in the samdb module.

Andrew Bartlett
(This used to be commit 0cc58f5c3c)
2007-10-10 13:30:00 -05:00
Andrew Tridgell
79cac4b6e2 r8736: this fixes the ldb speed (raises BENCH-WINS from 15 ops/sec to over 4000)
simo, we need to be careful to cope with this sort of direct dn query efficiently
(This used to be commit 7b37923b72)
2007-10-10 13:30:00 -05:00
Andrew Tridgell
126c673136 r8735: added NBT and WINS testing to 'make test' so we will know if it breaks again
(This used to be commit 519812a9e8)
2007-10-10 13:30:00 -05:00
Andrew Tridgell
f4b488ec01 r8734: fixed the wins server for the new ldb DN restrictions.
This gets it working, but I'm rather worried about the speed. We used
to get more than 5000 ops/sec, but now we are down to around 15
ops/sec. I suspect a bug in ldb.
(This used to be commit 83727bf72c)
2007-10-10 13:29:59 -05:00
Andrew Tridgell
6b2d6ce604 r8729: make the RAW-SEARCH test more robust to servers with hash based directory ordering
(This used to be commit 8c4d0cd7b7)
2007-10-10 13:29:59 -05:00
Andrew Tridgell
9abc667c71 r8726: increase default session timeout to 15 minutes to be less painful for developers
(This used to be commit d40e590674)
2007-10-10 13:29:59 -05:00
Rafal Szczesniak
64f31e424b r8721: Further work on libnet_rpc_usermod function. Now it can change
both account name and full name.

rafal
(This used to be commit 1a779f8643)
2007-10-10 13:29:58 -05:00
Rafal Szczesniak
e5f6083092 r8717: Add monitor message emiting in userdel and usermod calls.
rafal
(This used to be commit 4b3aa69e70)
2007-10-10 13:29:58 -05:00
Andrew Tridgell
f1418f62ee r8715: - revert the %PRIi64 stuff. Tim, we explicitly check for %llu support
in configure, and replace snprintf if the system doesn't support
  it. Our replacement code does not handle the "%PRIi64" stuff, so
  using it would break us on lots of platforms

- fixed constant array initialisers to work on HPUX.
(This used to be commit c6bae3e87e)
2007-10-10 13:29:58 -05:00
Tim Potter
ab4f3a663b r8714: Oops - get it right this time!
(This used to be commit 1d2b708da6)
2007-10-10 13:29:58 -05:00
Tim Potter
a33c02612a r8713: Experiment to try and fix warnings on 64-bit machines without breaking
32-bit ones.  Yes, this weird looking macros are part of C99.
(This used to be commit 7b316f119b)
2007-10-10 13:29:57 -05:00
Andrew Tridgell
2c457eca25 r8712: cleanup old search test code to use talloc
(This used to be commit 1d830bcd47)
2007-10-10 13:29:57 -05:00
Andrew Tridgell
f4691cf6f6 r8711: add m4 for finding return type for signal handlers
this patch brought to you by the continuing saga of HPUX portability
(This used to be commit 4d63bd27d4)
2007-10-10 13:29:57 -05:00
Andrew Tridgell
0edd0f43c0 r8710: another attempt at fixing HPUX
(This used to be commit eb3b3c8b40)
2007-10-10 13:29:56 -05:00
Andrew Tridgell
92a6cd373a r8709: fixed the assumption in RAW-SEARCH that directories are returned in sorted order
(This used to be commit 92afff5fe7)
2007-10-10 13:29:56 -05:00
Andrew Tridgell
e95fbd6db2 r8707: this typedef isn't used, and breaks the build on HPUX, so I've removed it
(This used to be commit b9b8714297)
2007-10-10 13:29:56 -05:00
Andrew Bartlett
42287c6f97 r8706: My previous patch oversimplied the previous change to session setup -
we didn't cope with the 'anonymous NTLM under SPNEGO' login.

Andrew Bartlett
(This used to be commit c3cc14542e)
2007-10-10 13:29:56 -05:00
Andrew Tridgell
355c169989 r8703: cope with null string in interpret_addr()
(This used to be commit ff156f7aae)
2007-10-10 13:29:56 -05:00
Andrew Tridgell
4d28d20a02 r8702: fixed ntlm_auth build. Andrew, can you check I got this right?
(This used to be commit 3c12b46e32)
2007-10-10 13:29:55 -05:00
Andrew Bartlett
cd882fc78d r8701: Fix up auth_developer for recent changes.
Andrew Bartlett
(This used to be commit 1bc5a11907)
2007-10-10 13:29:55 -05:00
Andrew Bartlett
b16362fab6 r8700: Propmted by tridge's need to do plaintext auth in ejs, rework the
user_info strcture in auth/

This moves it to a pattern much like that found in ntvfs, with
functions to migrate between PAIN, HASH and RESPONSE passwords.

Instead of make_user_info*() functions, we simply fill in the control
block in the callers, per recent dicussions on the lists.  This
removed a lot of data copies as well as error paths, as we can grab
much of it with talloc.

Andrew Bartlett
(This used to be commit ecbd2235a3)
2007-10-10 13:29:55 -05:00
Andrew Bartlett
176c0d1b77 r8699: removed invalid comment
(This used to be commit f5910ceef5)
2007-10-10 13:29:55 -05:00
Andrew Tridgell
fe6eeeb601 r8698: attempt to cope with lack of strtoull() on HPUX
(This used to be commit c84c516b17)
2007-10-10 13:29:55 -05:00
Andrew Tridgell
d55b75d833 r8696: fixed ejs to more strictly follow the va_list rules. Might fix that
pesky panic on x86_64
(This used to be commit 80177b29f4)
2007-10-10 13:29:55 -05:00
Rafal Szczesniak
6366a8dc2d r8693: Test code for usermod routine.
rafal
(This used to be commit 19f5ea9c9c)
2007-10-10 13:29:54 -05:00
Rafal Szczesniak
6868795a39 r8692: Starting parts of code to provide user modify functionality.
It's more like a placeholder now, than a working code. Just don't
want to hang it around my laptop only.

rafal
(This used to be commit bee1c9ec2d)
2007-10-10 13:29:54 -05:00
Jelmer Vernooij
c84512f0e1 r8690: Code cleanups, improvements necessary for dependencies (not added yet)
(This used to be commit 7384b3c4a1)
2007-10-10 13:29:54 -05:00
Andrew Tridgell
2a65d17e06 r8685: an alpha in the build farm is dying with a floating point
exception. Catch these in out fault handler, so we get a backtrace
(This used to be commit 802724cf69)
2007-10-10 13:29:54 -05:00
Andrew Tridgell
04598d3832 r8684: this should fix the panic on x86_64, and possibly alpha
(This used to be commit c2f5884e2f)
2007-10-10 13:29:54 -05:00