1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-09 08:58:35 +03:00

8276 Commits

Author SHA1 Message Date
Andrew Tridgell
7e92fb7453 added strndup() for systems that don't have it -
Andrew Tridgell
51b4de0ae3 don't try to return a void -
Andrew Tridgell
dfa990170b possibly fix the 15000 user problem
I think its caused by a rpc operation failing and us giving invalid
data back to the cache layer. Using talloc_zero() should solve this.
-
Andrew Tridgell
91a3ccd3e7 - the 36^6 hash space gives 31 bits, not 32 bits. We need to mask the
hash to suit
- the prefix ends at the last dot, not the first
-
Andrew Tridgell
582f753eac a few debug statements (disabled) -
Andrew Tridgell
ecdddd674f don't treat '.' as FLAG_ASCII, instead handle it separately -
Andrew Tridgell
128bec2071 - tidier flag checking code
- finished the is_mangled() function
-
Andrew Tridgell
8d6f2e2399 added some more comments -
Andrew Tridgell
30b35d0c1f some optimisations to the new mangling system -
Andrew Tridgell
bb173c1a7e this adds a completely new hash based mangling scheme
the hash for this scheme is *much* larger (approximately 31 bits) and
the code is written to be very fast, correctly handling multibyte
while not doing any actual multi-byte conversions in the vast majority
of cases

you can select this scheme using "mangling method = hash2", although I
may make it the default if it works out well.
-
Tim Potter
094a51edb9 Implemented a setup_logging() function that takes two keywords:
interactive and logfilename.  These can be used to send Samba DEBUG()
output to stdout or to a logfile which makes automated testing much
funkier.

Also added get_debuglevel() and set_debuglevel() functions.

Make open_pipe_creds() accept None as a anonymous credential.
-
Tim Potter
6c7b5e15c2 Implemented a setup_logging() function that takes two keywords:
interactive and logfilename.  These can be used to send Samba DEBUG()
output to stdout or to a logfile which makes automated testing much
funkier.

Also added get_debuglevel() and set_debuglevel() functions.
-
Tim Potter
8bb798ab3d Ignore bin directory. -
Gerald Carter
233a24792e removed unnecessary memset -
Jeremy Allison
42ae2334f2 Correctly emulate NT in printer handle opening access rights.
Jeremy.
-
Andrew Tridgell
be23d87a17 This split the mangling code up to allow for the possibility of multiple
mangling implementation, selectable using "mangling method = " in smb.conf

It also tidies the interface a little, although it is still nasty.
-
Gerald Carter
d7c9b00253 s/werror_str/dos_errstr/g to fix compile -
Gerald Carter
7db47c6647 merge from 2.2 -
Gerald Carter
32dc5dbbfb WERROR merge from SAMBA_2_2 -
Gerald Carter
d87aa35d48 specversion merge from SAMBA_2_2 -
Tim Potter
f8673bd499 Added a whole bunch more permission constants. -
Jeremy Allison
678f4f455e Removed duplicate _LARGEFILE64_SOURCE added in error.
Jeremy.
-
Jeremy Allison
9f2753a149 Ensure VFS modules will build correctly by adding defines for CPPFLAGS
defines into acconfig.h - only defined if seen.
Jeremy.
-
Jim McDonough
b69f11170c Rename of ads_do_search_all2() to ads_do_search_all() and removal of
server sort controls.  Also put option externs in the net.h include.
-
Jim McDonough
4e3265c3c9 Add a few option externs for net_ads.c -
Jim McDonough
7aa5fa6172 A few more updates:
- Add doxygen comments
- remove server sort control (ms implementation was not reliable)
- rename ads_do_search_all2() to ads_do_search_all_fn()
-
Jim McDonough
9126f008ef Add ads ldap server controls -
Tim Potter
e878cdc9f5 Fixed missing alignment in spoolss_io_q_enumjobs() function. -
Tim Potter
952eb866f4 Added cli_spoolss_enumjobs() function. -
Jeremy Allison
16015c07ea Added Shirish's client side caching policy change.
Jeremy.
-
Andrew Tridgell
da794d3bbd fixed a return value for a help function -
Tim Potter
b618b5943d Moved definition of winbind username/password secrets into secrets.h -
Tim Potter
3e7985c60e When printing a tdb log message display "unnamed" instead of "unknown" if
the tdb has not been named.
-
Jeremy Allison
cda9fccd62 Shirish pointed out more areas we should be doing roundups for allocation size.
Jeremy.
-
Tim Potter
49e429a97f Fixed typo in debug statement. -
Tim Potter
be6f955107 Fixed some compiler warnings. -
Tim Potter
908b70f3e2 Added WERR_INVALID_FORM_NAME constant. -
Andrew Bartlett
e60c509813 Add a become_root()/unbecome_root() pair to allow acces to the passdb for
SID lookup.  This fixes a bug where SIDs (rather than names) are displayed in windows ACL lists
-
Tim Potter
ecba275cf7 Fixed setform and addform functions. -
Tim Potter
5ef5e805d5 Added constants for form types and WERROR values. -
Tim Potter
6367bfc478 The useless_ptr must be non-zero for addform and setform client functions
to work.

Note about setprinter level 1 not existing.
-
John Terpstra
24bc4e8e2c Fix location of binaries and make sure they get there. Still experimental. -
Simo Sorce
aff7073dab a fix yet committed to 2.2 sometimes ago and reintroduced here! -
Andrew Bartlett
ad8aa47057 Reintroduce the 2.2 name mangling code, until we get are more flexible solution.
Even for a hash/cache setup, this code needs some more work, in particular
it needs to use mangle_get_prefix() etc and to move to unicode internals.

Andrew Bartlett
-
Andrew Bartlett
26842f1ac0 Fix up major logic reversal flaws in pdb_ldap.
WARNING: if you relied on these logic flaws, you will need to manually
edit your ldap backend (for things like account expries etc).

Now correctly retunes the information needed for 'must change at next login'
support.
-
Tim Potter
423985ed56 Spelling. -
John Terpstra
729fa66f0e Fix pathes. -
Simo Sorce
f07b2b3d52 uint32 store and fectch functions, a signed int is not enough sometimes -
Simo Sorce
af0fa4cf7c better check of called function's return
tdbtorture say it's ok
-
John Terpstra
90f7d4ac84 Oops .. last update was committed before saving! Argh! -