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

11273 Commits

Author SHA1 Message Date
Volker Lendecke
8a55edea4d Metzes change:
> Hi Volker,
>
> if 'displayName' is not available we should fallback to 'cn' for map->nt_name
> 'cn' is used as unix group name by nss_ldap.
>
> and if nt_name is not available we should fail (so does this patch)

Volker
(This used to be commit 3a7d1e72e208b9609da4ff65d9fff9179799ecac)
2003-03-23 08:40:28 +00:00
Andrew Bartlett
a8394385e6 Patch from waider to update our samsync (net rpc vampire) code:
- Decode all the database names, even if we don't decode their contents
 - Update the 'set' code to match rpc_server/srv_samr_nt.c in only recording
   the difference between the old and new.

Andrew Bartlett
(This used to be commit 6509397f91a4c218552a48a96df06e595b630898)
2003-03-23 01:33:13 +00:00
Jelmer Vernooij
dc1c29d29c Don't declare variables after instructions
(This used to be commit 818bc35da7b66aa8c4156406b7ab3304d4c94a72)
2003-03-23 01:09:43 +00:00
Jelmer Vernooij
46a6e7f62b We don't need optarg when we have popt
(This used to be commit b46581ef153296a0a04f773115cb2ddad4d44686)
2003-03-23 00:47:35 +00:00
Jelmer Vernooij
8c7753e87f Convert to popt.
(This used to be commit 5f12b246b03aef93165059f632012b6fc4706c70)
2003-03-23 00:44:56 +00:00
Jelmer Vernooij
a76d82616a Use True, not TRUE
(This used to be commit eeeeb37fc6de60928f7efdeb05bb2c6516f24441)
2003-03-23 00:30:17 +00:00
Jelmer Vernooij
73a7abf77d Fix typo in comment
(This used to be commit e7ed8bfc24d94b0b6e70a03eaae927fe1daa7d56)
2003-03-23 00:26:41 +00:00
Jelmer Vernooij
440709a9d8 Add minimum man page
(This used to be commit 8597b8cb952713239aa510ef84e295a8bc8271c6)
2003-03-23 00:26:09 +00:00
Jelmer Vernooij
6ab85f1997 Convert to popt.
(This used to be commit 633b3eb7812dc0a58785536a1e7d28329d488b43)
2003-03-23 00:18:44 +00:00
Jelmer Vernooij
42879b0bf3 Move -V to -C to prevent conflict with -V for version
(This used to be commit 99de90adc98b8d5354c769dcd25cc1f34d3769e9)
2003-03-23 00:12:54 +00:00
Jelmer Vernooij
055094c460 Also move -V to -C in docs
(This used to be commit 33097cc6610380c373c121380e51d5656955971b)
2003-03-23 00:12:37 +00:00
Jelmer Vernooij
52cee834d0 Don't crash when initialising tdb fails
(This used to be commit b18d02891be1ea3728239eee15a4aed3c3be2fea)
2003-03-23 00:10:35 +00:00
Jelmer Vernooij
7c7054b45e Convert to popt.
(This used to be commit 10c2fe08b6fdc2a9985a154b93555197bf5815fa)
2003-03-22 23:55:33 +00:00
Jelmer Vernooij
6bfe8b7c16 Convert to popt
(This used to be commit 8f285878b30bad7388f69075538c628a7e18ac8a)
2003-03-22 23:51:46 +00:00
Jelmer Vernooij
89cd467415 Add nicer --help headers
(This used to be commit e56ab71f1237a71c6ad4f321ce1db4e9397efd73)
2003-03-22 23:50:11 +00:00
Jelmer Vernooij
94837e2125 Add -U, -N, -i, -A, -W to popt.
(This used to be commit 5a88d78f67fd7853d6f7d5042807afa56091d52c)
2003-03-22 23:48:02 +00:00
Jelmer Vernooij
22e62916d8 - Use FUNCTION_MACRO, not __FUNCTION__.
- Add some const
(This used to be commit e149e70717f38e082ce35d55f9b4d84ba8419af7)
2003-03-22 23:25:44 +00:00
Andrew Bartlett
1ce67b7672 Valgrind found a few memory leaks!
Andrew Bartlett
(This used to be commit fb680f610ceb9a0f350c99456cf7ab1a507543fe)
2003-03-22 23:25:09 +00:00
Jelmer Vernooij
dea7597767 Don't use EDQUOT on systems where it's not available
(This used to be commit 2e1e5719f188a933e6b691fbd48037a0d29497e4)
2003-03-22 22:04:58 +00:00
Jelmer Vernooij
c8864235ba Detect missing -lroken properly on systems without krb5-config
(This used to be commit 9c3b8533fc6d2a68e013668d0927d479f4ab58dd)
2003-03-22 22:00:19 +00:00
Jelmer Vernooij
ee529672e2 Return value in non-void function
(This used to be commit 0efa773bac4b9fe2f79265413c32fecce55cc369)
2003-03-22 21:59:17 +00:00
Jelmer Vernooij
4985533fd3 Use FUNCTION_MACRO, not __FUNCTION__
(This used to be commit 6df38e250af1a8e7213ad66342c71c52ce118a12)
2003-03-22 20:49:55 +00:00
Volker Lendecke
ba47af4ec2 Never touch complicated if/else/elsif structures :-)
This repairs domain join with fully existing wks-account which I broke
with my last patch...

Volker
(This used to be commit 582a34efbe3c1570b852c93318ff6002954ddf6a)
2003-03-22 20:48:47 +00:00
Jelmer Vernooij
38794e945e Don't use errno's when they're not available
(This used to be commit b757a4374832d76500a889e4785622320881018d)
2003-03-22 19:39:31 +00:00
Volker Lendecke
a9aa2cb025 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
(This used to be commit f7149cf500d2b10ee72163c018a39fdd192d7632)
2003-03-22 19:15:50 +00:00
Andrew Bartlett
5050e8ee1a Revert bogus part of previous patch.
(This used to be commit 3cddfe211da812a533611eecba5d5da55fd3cf2d)
2003-03-22 13:41:16 +00:00
Andrew Bartlett
a38e5e6850 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
(This used to be commit a7eba37aadeb0b04cb1bd89deddb58be8aba825c)
2003-03-22 13:06:52 +00:00
Andrew Bartlett
b508fdfc23 Fix compile on IA64 by noting that this should be the integer, not a pointer
to the integer for SIVAL().
(This used to be commit e8b4b136669e7e415557956d698c66c254b28ec1)
2003-03-22 10:54:03 +00:00
Andrew Bartlett
bde949c721 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
(This used to be commit b1b4370955d50fd4997c7171a99fe03f97190aca)
2003-03-22 10:44:07 +00:00
Andrew Bartlett
87cbd9ab68 Patch from Jianliang Lu <j.lu@tiesse.com> to set the 'minimum password age'
when setting the password.

Andrew Bartlett
(This used to be commit 552198b9e149c41f8cb2f976421ef030eac6fba6)
2003-03-22 08:07:53 +00:00
Jelmer Vernooij
58cd54aeb8 FALSE -> False (reported by Paul Green)
(This used to be commit 1002b0bbff295548b74580dbb0dc0c76474af23b)
2003-03-22 00:27:18 +00:00
Andrew Bartlett
2da9a44ba0 Clobber the 'SAFETY_MARGIN' in libsmb.
Andrew Bartlett
(This used to be commit 05a63bd17e4c35979b3864b0969b2bfd945335d9)
2003-03-21 22:38:04 +00:00
Andrew Bartlett
d2d29ea953 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
(This used to be commit 191b0ab4d7c35c83d2bb2052b2e37d01fbf37b45)
2003-03-21 22:37:14 +00:00
Andrew Bartlett
ab25a258c0 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
(This used to be commit 23c7342bc40daffbcd70ef04727cae2c2b2c366b)
2003-03-21 22:31:25 +00:00
Jeremy Allison
522cc6781f Merge of new appliance-head scalable printing fixes.
Jeremy.
(This used to be commit 301f17df51961b645b63d1520fc9c2e5627c1a0a)
2003-03-21 22:00:19 +00:00
Jelmer Vernooij
940a114058 Add more mappings to the nterr->errno mapping table. It should be fairly
complete now.
(This used to be commit 72bb5615f3eef1c5b27716dfcabe4c8288729458)
2003-03-21 21:43:54 +00:00
Andrew Bartlett
677838b999 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
(This used to be commit 929213ff2a5829ba8435ba1be0de317bca1e0da0)
2003-03-21 13:28:06 +00:00
Jelmer Vernooij
5c913362dc Only build pdb_ldap if both ldap libs and headers are found
(This used to be commit 228110e83fce91c811c82f6f836d313b6b79ff87)
2003-03-20 17:45:23 +00:00
Volker Lendecke
afcb58ac9e 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
(This used to be commit d42eb2116df4bb82c4199a688a057cd0a9f435ed)
2003-03-20 16:53:07 +00:00
Jelmer Vernooij
c7e720c87b 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
(This used to be commit ca066502a2a3dbdd8943d515c9c6d21e62d757b6)
2003-03-20 16:42:39 +00:00
Jelmer Vernooij
9ba6be2e70 Fix setOtherHelp() - pointed out by metze
(This used to be commit 05b1681b03688c0d4e57e8dfb881b111f947e6c6)
2003-03-20 15:45:27 +00:00
Jelmer Vernooij
be40463c31 Fix compile errors - don't use pstrcpy() on a fstring
(This used to be commit 3bad73ca870bb43324bdb5dfc6bb02e0fa1fb1e0)
2003-03-20 14:49:37 +00:00
Jim McDonough
29d734a93c use pstrcpy_base()
(This used to be commit 9387caf3cebecd50de2b295560355b779135d8c3)
2003-03-20 14:39:46 +00:00
Jelmer Vernooij
6798444ba5 Build samr as well
(This used to be commit 1d33afdef9ea11e17c633109170d35ed66c4e2b8)
2003-03-20 13:59:58 +00:00
Jelmer Vernooij
bcc8bb40e0 Use True, not TRUE and False, not FALSE
(This used to be commit 44e9bf88cc2bbb2aa34711354258c3abb319cb9b)
2003-03-20 13:21:23 +00:00
Volker Lendecke
3560c49e44 Fix typo
(This used to be commit 5c6f5bef30db62f351d83ecdd6aa6990a567d842)
2003-03-20 12:50:29 +00:00
Volker Lendecke
56b6650b4e I like debug level 10, but these messages always get into my way
when debugging pdc stuff...

Volker
(This used to be commit e1c275a66aa8a0fe29c61f4742fed5953671cb43)
2003-03-20 12:48:56 +00:00
Jelmer Vernooij
7477c65048 Update smbcacls.1 for 3.0
(This used to be commit 0ab40fac3a45b1f72b8bd53a48fc39dd46c69086)
2003-03-20 12:08:42 +00:00
Jelmer Vernooij
21fb006207 Convert smbcacls to popt
(This used to be commit 45e5374e89730e7ad497edf9e344fbd1b8992589)
2003-03-20 12:07:52 +00:00
Jelmer Vernooij
4e01382b3a Make swat use popt
(This used to be commit 3cd1650d389850c2a36997a1a404d37bb28130e4)
2003-03-20 11:11:32 +00:00