1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-31 17:18:04 +03:00
Commit Graph

7118 Commits

Author SHA1 Message Date
Andrew Bartlett
996cd3a097 There is no reason we can't join a domain with secuirty=user. In fact we
need to when we are a BDC or a PDC doing a self-join.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Tridgell
57645fd85b make net ads info work with -S 0001-01-01 00:00:00 +00:00
Tim Potter
1ae07c42a4 Compile fix for --with-profiling-data 0001-01-01 00:00:00 +00:00
Andrew Bartlett
438f028fc4 Don't leak memory on failure. 0001-01-01 00:00:00 +00:00
Andrew Bartlett
56009ffbaa Make sure to initaliase SAM_ACCOUNT pointers to NULL, otherwise pdb_init_sam()
fails.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Tridgell
be399f5823 fixed the secondary group mappings for ADS users 0001-01-01 00:00:00 +00:00
Gerald Carter
9282aa02d4 merge from APPLIANCE_HEAD 0001-01-01 00:00:00 +00:00
Jeremy Allison
fbc8c6a109 Ensure we don't do lp_servicename()'s in tdb traverse as this
allocates lots of memory.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
230941d2fb Print queue entries *must* have queue names, not numbers - numbers are
not identical between different smbds (mr potter, come here and take
your medicine.... :-).
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
c5230a5387 John's patch changed the size of a structure stored in the tdb - we
must thus update the versionid of the tdb.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
bc8d4b9880 HEAD only fix for truncate from Alexander Bokovoy <a.bokovoy@sam-solutions.net>.
This code needs replacing with the trans2.c from 2.2.x.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Bartlett
520c8626dc Make ldapsam compile again. 0001-01-01 00:00:00 +00:00
Jeremy Allison
2be9b253ad BUFFER_SIZE Should be 128k if large read write tests are to work.
Jeremy.
0001-01-01 00:00:00 +00:00
Martin Pool
098905bea2 Add assertions that kill() is never accidentally passed a non-positive
pid.  This follows a bug in rsync where it would accidentally
kill(-1), removing all the user's processes.  I can't see any way this
would directly happen in Samba, but having the assertions seems
beneficial.

http://cvs.samba.org/cgi-bin/cvsweb/rsync/util.c.diff?r1=1.108&r2=1.109&f=h
0001-01-01 00:00:00 +00:00
Tim Potter
b1b7ae8bcf Actually use flags passed in PYTHON_CFLAGS variable.
Use py_common.c in winbind extension module for correct initialisation.

Some reformatting.
0001-01-01 00:00:00 +00:00
Tim Potter
ba0624d0c3 Added enum domain users and enum domain groups. 0001-01-01 00:00:00 +00:00
Tim Potter
8e4bb2f8a0 Pass $(CFLAGS) and $(CPPFLAGS) to python compile instead of $(FLAGS) 0001-01-01 00:00:00 +00:00
Tim Potter
5e955b5fcc Added name_to_sid and sid_to_name functions. 0001-01-01 00:00:00 +00:00
Tim Potter
19dd8ba826 Remove nsswitch from include directories. 0001-01-01 00:00:00 +00:00
Tim Potter
099f8c5dfd Cache call to winbind separator.
Some random reformatting and cleanup.

Display output of wbinfo -s using actual winbind separator.
0001-01-01 00:00:00 +00:00
Gerald Carter
88d8897e21 resetprinter merge from SAMBA_2_2 0001-01-01 00:00:00 +00:00
Tim Potter
b06fc0cc84 Ignore autogenerated setup.py 0001-01-01 00:00:00 +00:00
Tim Potter
d35770d06f Initial version. 0001-01-01 00:00:00 +00:00
Jeremy Allison
5b04b5f1df Correctly increment offset in cli_smbwrite.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Bartlett
0f0f87e6c3 Allow a zero rid in pdb_smbpasswd. When given a zero rid the pdb backend
should chose the next available RID.  For smbpasswd it just means using the algorithm, but other backends can do somthing more useful.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Jeremy Allison
24ef6258a1 Test against W2K that we're doing large read/writes correctly (we are).
At least with 14 word writes.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
00cabb2346 Ensure we get a real fd when opening for set file allocation.
Jeremy.
0001-01-01 00:00:00 +00:00
Tim Potter
3c587384cb Merge of Richard's lookupsid fix. 0001-01-01 00:00:00 +00:00
Jeremy Allison
5b43519219 Fix for debug typo. 0001-01-01 00:00:00 +00:00
Jeremy Allison
504e5ef049 Remove the "stat open" code - make it inline. This should fix the
bugs with opening and renaming mp3 files, also the word rename
problems that people have had for a while.
Needs a make clean :-) make.
Also added JohnR's printing fix.
Jeremy.
0001-01-01 00:00:00 +00:00
Tim Potter
47b1003bc5 Merge from app-head:
> Don't put two copies of the server name in construct_printer_info_1()
0001-01-01 00:00:00 +00:00
Tim Potter
4d172b712f Patch to configure.in and Makefile.in for Python extensions. 0001-01-01 00:00:00 +00:00
Jeremy Allison
d5fd1fd859 Merge JohnR's fix.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
76fe90343c the beginning of a test to determine and display a servers properties
just shows capabilities at the moment
0001-01-01 00:00:00 +00:00
Tim Potter
85650ee3bc setup.py for samba python wrappers 0001-01-01 00:00:00 +00:00
Andrew Tridgell
98769f08e7 make "net ads user" and "net ads group" also use the new paged interface 0001-01-01 00:00:00 +00:00
Andrew Tridgell
41e1560798 updated winbindd to used paged ldap searches for all ldap queries 0001-01-01 00:00:00 +00:00
Andrew Tridgell
514c11b4e3 added a ads_do_search_all() call, which is a more convenient interface
to paged searches. This makes updating winbindd to used paged searches
trivial.
0001-01-01 00:00:00 +00:00
Simo Sorce
aa4b6f8181 second step to gain free uid<->rid mapping
we still need to free gid<->rid mapping and few other stuff
0001-01-01 00:00:00 +00:00
Andrew Tridgell
8bf487ddff fixed paged controls on my box. The problem seems to be incorrect
referrals parsing in the openldap libs. By disabling referrals we get
valid controls back and the cookies work.
0001-01-01 00:00:00 +00:00
Martin Pool
aa27993245 Take out autobuild dependency on proto.h; breaks some proprietary Makes. 0001-01-01 00:00:00 +00:00
Martin Pool
87f2e3c30d Refactor for systems like Solaris that cannot handle wildcards on the
right side of a dependency line.
0001-01-01 00:00:00 +00:00
Martin Pool
8a61a810e5 Change the Makefile to rebuild proto.h as necessary -- note that this
does not imply that all source will be rebuilt when prototypes change,
merely that the prototypes will be updated.

make proto, clean, delheaders, headers, etc all behave equivalently to
before.

  Intended new behaviour for proto.h, whenever source is being
  compiled:

  If proto.h does not exist, it is built.

  If any source files have changed since proto.h was last checked
  (.proto.check), then proto.h is checked.  If there are no actual
  changes since last time, its mtime is not changed, but we do
  remember the time at which it was checked.

  Whenever we try to build a .o, we need to check the headers are up
  to date.  However, rebuilding the prototypes does not imply
  rebuilding all object files.

  Also to allow people to build on machines without Awk, we never try
  to use it unless a source file has changed.  I guess if we wanted,
  we could have lack of Awk only cause a warning, not failure.

The point of all of this is to be easier on people who don't
understand or forget to type "make proto", and to reduce the chance of
build breakage by having prototypes out of sync.

I also rolled back JF's changes to put proto.h into builddir rather
than srcdir.  There are good arguments in both directions, but since
we keep proto.h in CVS, it seems important that the up-to-date copy by
in srcdir where it can be checked back in.  If people are fussed about
having srcdir be readonly you could change this -- but since proto.h
is only rebuilt when there are changes, it's not a big deal.

I also fixed an apparent race condition in "make headers" that would
make it unsafe if you did 'make -j2', and made 'make clean' not kill
proto.h, since people may not be able to rebuild it.

I reckon there's nothing gnumake-specific here but we shall see.

I also have this great idea about rewriting libtool in C++...
0001-01-01 00:00:00 +00:00
Andrew Bartlett
f4f23fad60 Fix a double-free bug in wbinfo -t's call in winbindd.
I forgot to clean this up when netlogon move across to the connection cache
arrangement.

Also add some smb_panics to the connection_ok() code to try to catch this kind
of thing better in future.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Tim Potter
5387e4046f Don't try to sort a list of zero length in internal_resolve_name() 0001-01-01 00:00:00 +00:00
Jeremy Allison
2e3133fbe5 Merge in JohnR's page count fixes.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
ad1e858d8e Sync up vfs changes from 2.2.x.
Jeremy.
0001-01-01 00:00:00 +00:00
Simo Sorce
fdb88eb06a ops forgot this :-) 0001-01-01 00:00:00 +00:00
Simo Sorce
9836af7cd6 more verbose checking in talloc and util_pw
fixed tdbsam memory corruption (and segfault)
reducing calls to pdb_uid_to_user_rid and countrary to 0 to move to a non alghoritmic rid allocation with some passdb modules.
0001-01-01 00:00:00 +00:00
Simo Sorce
724390a8da Start to switch away from the alghorithmic uid->rid mapping model 0001-01-01 00:00:00 +00:00