1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-23 09:57:40 +03:00

9936 Commits

Author SHA1 Message Date
Jelmer Vernooij
5a88d78f67 Add -U, -N, -i, -A, -W to popt. -
Jelmer Vernooij
e149e70717 - Use FUNCTION_MACRO, not __FUNCTION__.
- Add some const
-
Andrew Bartlett
fb680f610c Valgrind found a few memory leaks!
Andrew Bartlett
-
Jelmer Vernooij
2e1e5719f1 Don't use EDQUOT on systems where it's not available -
Jelmer Vernooij
9c3b8533fc Detect missing -lroken properly on systems without krb5-config -
Jelmer Vernooij
0efa773bac Return value in non-void function -
Jelmer Vernooij
6df38e250a Use FUNCTION_MACRO, not __FUNCTION__ -
Volker Lendecke
582a34efbe Never touch complicated if/else/elsif structures :-)
This repairs domain join with fully existing wks-account which I broke
with my last patch...

Volker
-
Jelmer Vernooij
b757a43748 Don't use errno's when they're not available -
Volker Lendecke
f7149cf500 This changes the way we do LDAP updates. We don't use LDAP_MOD_MODIFY
anymore, but instead look at what is currently stored in the
database. Then we explicitly delete the existing attribute and add the
new value if it is not NULL or "". This way we can handle appearing
and disappearing attributes quite nicely.

This currently breaks pdbedit -o, as this does not set the CHANGED
flag on the SAM_ACCOUNT.

Jelmer suggested that we set all the fields on CHANGED in
context_add_sam_account. This sounds not too unreasonable.

Volker
-
Andrew Bartlett
3cddfe211d Revert bogus part of previous patch. -
Andrew Bartlett
a7eba37aad Small clenaup patches:
- safe_string.h - don't assume that __FUNCTION__ is available
 - process.c - use new workaround from safe_string.h for the same
 - util.c - Show how many bytes we smb_panic()ed trying to smb_xmalloc()
 - gencache.c - Keep valgrind quiet by always null terminating.
 - clistr.c - Add copyright
 - srvstr.h - move srvstr_push into a .c file again, as a real function.
 - srvstr.c - revive, with 'safe' checked srvstr_push
 - loadparm.c - set a default for the display charset.

Andrew Bartlett
-
Andrew Bartlett
e8b4b13666 Fix compile on IA64 by noting that this should be the integer, not a pointer
to the integer for SIVAL().
-
Andrew Bartlett
b1b4370955 It seems that this causes some problems on some linux platforms - it's a
pity becouse otherwise you need to link a program with it to get the
fstring/pstring bugs.

Andrew Bartlett
-
Andrew Bartlett
552198b9e1 Patch from Jianliang Lu <j.lu@tiesse.com> to set the 'minimum password age'
when setting the password.

Andrew Bartlett
-
Jelmer Vernooij
1002b0bbff FALSE -> False (reported by Paul Green) -
Andrew Bartlett
05a63bd17e Clobber the 'SAFETY_MARGIN' in libsmb.
Andrew Bartlett
-
Andrew Bartlett
191b0ab4d7 Clobber our SMB buffers between packets. I hope this will help find bugs
where we assume the buffer is zero, when it might not be (ie due to, previous
packets).

Andrew Bartlett
-
Andrew Bartlett
23c7342bc4 Patch from colo (on IRC) to get libsmbclient building due to pstring/fstring
issues.

Also pick up these link failures at compile time (rather than runtime).

Andrew Bartlett
-
Jeremy Allison
301f17df51 Merge of new appliance-head scalable printing fixes.
Jeremy.
-
Jelmer Vernooij
72bb5615f3 Add more mappings to the nterr->errno mapping table. It should be fairly
complete now.
-
Andrew Bartlett
929213ff2a Give volker a hand, and let domain joins with existing user accounts work
a bit better.

This just sets the minimum possible attributes - if we are 'upgrading' an
LDAP based user account, the attributes will be there anyway.  This matches
NT pretty well to.

This also fixes some use of unitialised values in the desired_access checking.
(found by valgrind).

Andrew Bartlett
-
Jelmer Vernooij
228110e83f Only build pdb_ldap if both ldap libs and headers are found -
Volker Lendecke
d42eb2116d NT4 as well as W2k respond with IPC regardless of what service
type the client requested in the TCONX when connecting to IPC$.

It is very well possible that this also applies to the DISK and PRINTER
share types, not only IPC.

Found this while trying to join a HEAD domain from NT4SP6.

Volker
-
Jelmer Vernooij
ca066502a2 Patch from Samuel Thibault to convert messages from unix to dos charset. Works
on 2000.
sending messages to 9x needs to be fixed, but that didn't work anyway
-
Jelmer Vernooij
05b1681b03 Fix setOtherHelp() - pointed out by metze -
Jelmer Vernooij
3bad73ca87 Fix compile errors - don't use pstrcpy() on a fstring -
Jim McDonough
9387caf3ce use pstrcpy_base() -
Jelmer Vernooij
1d33afdef9 Build samr as well -
Jelmer Vernooij
44e9bf88cc Use True, not TRUE and False, not FALSE -
Volker Lendecke
5c6f5bef30 Fix typo -
Volker Lendecke
e1c275a66a I like debug level 10, but these messages always get into my way
when debugging pdc stuff...

Volker
-
Jelmer Vernooij
45e5374e89 Convert smbcacls to popt -
Jelmer Vernooij
3cd1650d38 Make swat use popt -
Volker Lendecke
e8725913f9 Merge Herb's change.
Volker
-
Martin Pool
aee2ad9c34 If CFLAGS is set when running configure, then just use that.
Otherwise add -O.

(We used to always set -O, which is sometimes annoying when debugging
and anyhow clashes with normal autoconf behaviour.)
-
Jeremy Allison
dee1326a1d lib/messages.c: Check return from chainlock before modifying message queue.
Apply the job returned limit across all requests for job queues.
Jeremy.
-
Tim Potter
45929d1269 Cleanup bogus initialisation in SID_NAME_USE enum.
Added new sid type = 9 for "computer" from MSDN.
-
Jelmer Vernooij
ea85f8ff21 Add make rules for passdb/*.so -
Jelmer Vernooij
6acbb37e4e Fix corrupt memory reading in smb_register_passdb -
Jim McDonough
1960a650c1 use strnlen to prevent coredumps -
Jelmer Vernooij
dd03aec26d Fix pdb_unix usage - noticed by jmcd -
Jelmer Vernooij
2541288025 Fix build errors and move pdb_guest.so -> guest.so -
Jim McDonough
c6eb950b68 replace pstrcpy -
Jelmer Vernooij
fa1c8eee1f Fix module names -
Jelmer Vernooij
af7bfee0c6 Put in the new modules system. It's now used by passdb and rpc. I will
put a doc about it in dev-doc later today.
-
Volker Lendecke
5eaf9195ee Add paramter 'ldap del only sam attr'.
This patch is heavily based on a patch by SuSE. Thanks
to Guenther Deschner <gd@suse.de> for providing it.

Volker
-
Jelmer Vernooij
41ea416adb Fix some comment typos -
Volker Lendecke
aa9b8382d3 Hey -- there is an error code NT_STATUS_CANNOT_DELETE :-) -
Volker Lendecke
a5218499eb If we fail, return an error code :-)
Volker
-