1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

7746 Commits

Author SHA1 Message Date
Andrew Bartlett
3db417c2eb Add some information tidbits to an error DEBUG(). -
Jeremy Allison
27f65b3aad Fixed ADDPRINTEREX to take a devmode and a security descriptor...
Jeremy.
-
Jean-François Micouleau
2506c98d19 that's the wins replication daemon !
there are still some work to do on it but it's already functionnal.

        J.F.
-
Jean-François Micouleau
b902e087d0 rewrote nmbd's wins backend to use a tdb instead of a flat text file.
Changed the way the wins record are handled in memory. Now they are living
much longer with the different states: active, released and tombstone.
Also added a version ID, some wins flags and the wins owner ip address to
the namrec->data struct, and a function to process messages sent by the
wins replication daemon.

the initiate_wins_processing() function is not correct, I'll fix it later.

        J.F.
-
Andrew Bartlett
f0137ac126 Change this code so that we don't do a lookup_name() on root.
This matches the lookup failure case in 2.2, and seems to make more sense than
giving the printer to 'world'.  (Avoiding this lookup makes some of my other
changes - including winbind default domains - a little easier).

In any case, tpot has promised to look at this and test it when he gets back to
work. :-)

Andrew Bartlett
-
Jim McDonough
7e5d7dfa83 Enable net ads commands to use existing tickets if the user doesn't specify a username on the commandline. Also don't continue past the kinit if a password is entered and fails because existing tickets would be used, which may not be desired if the username was specified. -
Jeremy Allison
248770d730 Fixed display of "remote downlevel document" in old print job submission
case.
Jeremy.
-
Jeremy Allison
5f4de275a3 Make systemtime work for spooling on bigendian systems. Fix from
Benjamin (Bj) Kuit bj@it.uts.edu.au.
Jeremy.
-
Jean-François Micouleau
5fef8a5ad2 new message type for nmbd
J.F.
-
Jean-François Micouleau
ca7665c6b3 remove unused variable
J.F.
-
Jean-François Micouleau
873dba59cf picky about realloc
J.F.
-
Gerald Carter
7dc1c34145 merge from 2.2 -
Andrew Bartlett
7d576d89d7 Passdb changes:
Modules now name themselves, which should allow for sane behaviour when we get
an 'extern' passdb module (which in turn loads a .so).

Fix up tdbsam for non-unix-accounts.  Not sure if this fixes idra's bug, but
its a start...

Andrew Bartlett
-
Andrew Bartlett
56be51d648 Fix a 'const' warning. -
Andrew Bartlett
c796799afd Bring auth_winbind into line with the protocol changes
Andrew Bartlett
-
Simo Sorce
8929f07a15 micro fix :-) -
Tim Potter
1f7172b48e Removed dodgy init of local variable. -
Jeremy Allison
0db93d8752 Return correct RPC fault PDU on bad handle incoming.
Jeremy.
-
Tim Potter
fc7ed1b4a8 Much more useful handling of backup domain controllers in winbindd. Honour
the "password server" smb.conf parameter when choosing a DC to connect to.

Due to the origin of the code in cm_get_dc_name() it wouldn't try
additional DCs if the first DC didn't work.  This would wedge winbindd if you
had "password server = foo1, foo2" and foo1 was down.
-
Tim Potter
b61e40a5be Remove check for passwordserver = "*" as we now initialise it.
Added TODO about perhaps doing a SAMLOGON udp/138 request before a
cli_full_connection in connect_to_domain_password_server()
-
Tim Potter
97b243c488 Initialise password server to "*" in init_globals() -
Tim Potter
7c2d720593 Removed unused static variable. -
Simo Sorce
04f492980b minor fixes -
Gerald Carter
2137c71634 merge from 2.2 -
Andrew Tridgell
05adb30eab handle filenames like .bashrc better in the new mangling code -
Jim McDonough
95857a3515 Check request flag for unicode capability and respond accordingly, rather than only doing unicode. smbfs didn't work. -
Andrew Bartlett
9b63a87223 Oops... -
Andrew Bartlett
f556ad67e8 getpwnam -> getpwnam_alloc.
idra has promised not to revert these this time :-)
-
Andrew Bartlett
635942ae21 Change the order of this a bit - as unix password change can fail.
This due for abstraction into chgpasswd.c shortly.

Andrew Bartlett
-
Tim Potter
6025ab201a Sync up startpageprinter with appliance. -
Gerald Carter
8ed7c1ffad merge from 2.2 -
Jeremy Allison
6406a42d01 Merge of fixes from 2.2.
Jeremy.
-
Gerald Carter
38d2d26af9 merge from appliance_head -
Gerald Carter
90a7a1840b merge from 2.2. of
* PRINTER_ATTRIBUTE's
  * "default devmode" parameter
-
Jeremy Allison
443d2530a7 Ensure fsp->size is correct so readraw's return correct data.
Jeremy.
-
Martin Pool
935955b50f Add more string explanations of RAP errors that are already documented
in clirap2.
-
Martin Pool
7f7d22880d We have to do some initialization before the string conversion
routines can work.  The code was copied into both convert_string and
convert_string_allocate -- I split it into a little static function,
and removed an apparently duplicate call to init_valid_table().
-
Tim Potter
5fb3be6291 Raise log level of warning produced when the open() of the tdb fails.
Sometimes an open error is OK.
-
Tim Potter
96c36e51ee Display tdb name of "unknown" in logging debug when tdb has not been named. -
Tim Potter
e05c9b34f0 Added comment about running lp_load() before calling pidfile_create(). -
Tim Potter
fa05a7de6d Call pidfile_create() as part of init sequence. -
Tim Potter
025a0ea8ba Having a const parameter for set_socket_options() causes too much confusion. -
Jeremy Allison
61b4ce7aef Removed freebsd hack. Not correct.
Jeremy.
-
Jeremy Allison
40060fe345 Found and fixed the logic bug in write cache code. Amazingly helpful
work from Juergen.Hasch@de.bosch.com in tracking this down.
Jermy.
-
Simo Sorce
f12361b132 getpwnam_alloc -> getpwnam
same reason as per pdb_tdb.c
there isn't (and will never be probably) another call to any getpw* fn,
let's use getpwnam_alloc only when needed.
-
Simo Sorce
57a145bff6 hmm, get it right this time. -
Simo Sorce
7f7a15e09a fix also the comment. -
Simo Sorce
5c0bb0487b replace getpwnam_alloc with plain getpwnam.
We are not going to reuse any getpw* call, so the extra alloc,copy and free
only uses extra memory and extra cpu time for nothing.
-
Martin Pool
1cd431b8f1 Make the -L option to smbclient slightly less gross:
smbclient -L //nautilus1/

should definitely not say "unknown host "nautilus1/".  Sheesh.
-
Tim Potter
6380f9ff7a Spelling fix. -