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

10305 Commits

Author SHA1 Message Date
Simo Sorce
e87f9a29b7 shouldn't wellknown group be well.. ..WKN_GRP ?
make a new sam_Account contain our domain by default, windows will complain
on logon otherwise.
fix stupid typo in idmap_util.c
(This used to be commit 21701876dc6c59ebfc51be708a98226a00a764e0)
2003-05-02 08:03:25 +00:00
Jeremy Allison
a5e8ba3c76 Fix uninitialized blobs reported by Luke Howard.
Jeremy.
(This used to be commit e954ca2ce8ec6b36794585c3bc948140cf9e7947)
2003-05-01 18:11:59 +00:00
Jeremy Allison
731eba7ded Fix for bugid 51 from Dragan Krnic.
Jeremy.
(This used to be commit aeba1fcab2fa61859fc1052af4752512a33bd801)
2003-05-01 17:48:07 +00:00
Simo Sorce
e492cdb4e4 fix wrong debug messages in idmap_util.c
correctly handle allocated rids in tdbsam
(This used to be commit 7ae6162e1dd668897628c4f7edff508616644d21)
2003-05-01 16:02:55 +00:00
Simo Sorce
6a10e99fb1 init wellknown in pdbedit too
add group mapping mappings to idmap at startup
(This used to be commit 62365023db61d5a4fa32845af3db73bce6cb94ea)
2003-05-01 14:32:24 +00:00
Simo Sorce
7264b9df8f proper wellknown sids initialization at startup
(This used to be commit 568feee8977ee1be210344c8ab1896512894cba2)
2003-05-01 14:08:00 +00:00
Simo Sorce
75cace04fd *id_to_*id call reshape to return NTSTATUS errors
plus internal fixes
1st stage
(This used to be commit 6d036761e565bc93964bb3c939d5b7d78d5778a3)
2003-05-01 11:47:48 +00:00
Jelmer Vernooij
ed454fe3d6 Fix disk quotas support on HP/UX (patch by David Nixon)
(This used to be commit 908d839b77a03ac07b00b43a3000c8ea53dd5e35)
2003-05-01 11:02:26 +00:00
Jelmer Vernooij
7226d4698e Use ints for the version numbers in the smb_register_*() functions (patch by metze)
(This used to be commit 3895571eeef81db7ce4c71e85b0be5c235b16efd)
2003-05-01 00:51:54 +00:00
Paul Green
4e2bd11d3e Refactor existing sock_exec() and socketpair_tcp() functions into their own
source file. I will be making changes to sock_exec to work on VOS, which
has a blocking connect() call, but first I want to get it in its own source
file so that it can be called from a test program.
(This used to be commit 2dd18ca0cfd4d793067b9b712554565965db0af1)
2003-04-30 17:35:56 +00:00
Simo Sorce
28cef867c7 correctly initiazlize idmap tdb when creationg new
few fixes to *id_to_*id functions, we don't set the mapping for algoritmic
RIDs, they are resolved in the classic way
eliminate getpw* calls from tdbsam
(This used to be commit 6a7689cf74cd4d5f29e0b12f4bf8ac3051d49157)
2003-04-30 16:35:17 +00:00
Andrew Bartlett
211939f3ab pam_smbpass will need at least IDMAP.
(This used to be commit b05fa6b90a7f5b74824d32b687c17ef6e76f59c1)
2003-04-30 13:57:28 +00:00
Andrew Bartlett
d1607e1cdb Get pam_smbpass to compile again (it probably won't link or run, but at least
it compiles and lets the build farm get on it's way)
(This used to be commit 7498d69d9d69f70a4c7511b5032d7d5d2b9c846f)
2003-04-30 13:56:02 +00:00
Simo Sorce
09391fc57d auto-init for utility functions
(This used to be commit db571a9fd7fbce1c13ed652616ad9725db00b49f)
2003-04-30 00:44:45 +00:00
Simo Sorce
d57dc1b8b2 forgot to remove getpwnam
(This used to be commit 1915ab7b95b2baade0f4293d5a7a96003888d1c9)
2003-04-29 23:52:53 +00:00
Simo Sorce
a1eaa7d5e0 This is a nice rewrite:
SAM_ACCOUNT does not have anymore uid and gid fields
all the code that used them has been fixed to use the proper idmap calls

fix to idmap_tdb for first time idmap.tdb initialization.

auth_serversupplied_info structure has now an uid and gid field

few other fixes to make the system behave correctly with idmap

tested only with tdbsam, but smbpasswd and nisplus should be ok

have not tested ldap !
(This used to be commit 6a6f6032467e55aa9b76390e035623976477ba42)
2003-04-29 22:06:16 +00:00
Gerald Carter
0db7c13f92 remove convert_smbpasswd and addtosmbpass from tree; people can get them from 2.2. if they still need them
(This used to be commit 000fe6b2f0e87571d2a6f2f19d4f90076eaeee3e)
2003-04-29 15:24:52 +00:00
Gerald Carter
d1ac14a49c adding ifdef'd code to add alias membership for vampire
(This used to be commit 21867183e082a4ec7fec64a534677058cba1a598)
2003-04-29 14:43:16 +00:00
Andrew Bartlett
103abffcae Some passdb backends really don't like having no primary group - so always
set one - new accounts -> domain users, unless otherwise specified.

This moves that logic from pdb_set_sam_sids() into pdb_init_sam_new(), which
is called by all the 'new account' creators. (pdb_set_sam_sids() now only
deals with the mapping from an existing account)

Andrew Bartlett
(This used to be commit 2c7b3d9fd5bb327bdbd34ec27b36eb59cbc481af)
2003-04-29 14:38:45 +00:00
Jelmer Vernooij
d9a34fec65 Change order of parameters to smb_register_passdb()
(This used to be commit 63cf5637c16dc770f0ab2f73ff00577c7cd426ee)
2003-04-29 14:09:50 +00:00
Gerald Carter
94102aea67 add version back to lanman string in sessetup reply
(This used to be commit 4ab1909378695383e7e5bd20898392e6d2166969)
2003-04-29 13:29:14 +00:00
Andrew Bartlett
a60682e9ab Merge Samba 3.0 pdb_ldap from 3.0 into HEAD, so as to allow idra to continue
his IDMAP work.

This version also works properly (the HEAD version had suffered from bitrot),
and should be a good basis to change into the new IDMAP rules.

It also includes UTF8 conversions.

Included also are the schema changes, and a note about the now very old scripts
in examples/LDAP (they don't work for this, or even the previous schema).

Andrew Bartlett
(This used to be commit 38a8f2b23a12f6a964d447f7904dd722a1ca046c)
2003-04-29 12:54:46 +00:00
Simo Sorce
2aadb320a4 forgot to add the file where things moved
(This used to be commit 3c2963f8e3f98ecae9fe59336c35000cf4d386c5)
2003-04-29 11:40:52 +00:00
Simo Sorce
fd102eb947 consolidate idmap code in one place
(This used to be commit f7041ec5d74475013c839b5ea9ecac10322e5e65)
2003-04-29 10:54:13 +00:00
Andrew Bartlett
8e7525be92 Merge 3.0's change to how we add users onto HEAD, including a few other bits
of sync-up for the rpc_server/srv_samr_nt.c

Andrew Bartlett
(This used to be commit 3c867aedd9abc29389f5d049dbc94ada6738d1b0)
2003-04-29 10:26:51 +00:00
Gerald Carter
46eac77b3b only call the add_script if the getpwnam_alloc() fails
(This used to be commit ba1e654a15fa800e56732fe005afd7479c18324b)
2003-04-29 05:37:42 +00:00
Gerald Carter
97a16d0cae don't implement any group mapping functions in the guest sam module
(This used to be commit a4056e2cae21e1f7e1aac1414bfa4158947fbfc7)
2003-04-29 05:32:00 +00:00
Gerald Carter
f96f82da05 removing printing = SOFTQ since no one knows what it is
(This used to be commit 7daf5f004273156ae263129b847c601b210f4fdb)
2003-04-29 05:30:42 +00:00
Simo Sorce
67a5f62e43 ok next_rid out as well local_*id_to*id functions
reverted user making function, did not pass the abartlet test :-)
idmap is now fully integrated, we only miss user creation and removal of uid
and gid from SAM_ACCOUNT
(This used to be commit 67af8c26586c4829166795813a373bf9be27b753)
2003-04-29 03:31:00 +00:00
Simo Sorce
e64b34cd47 swat need idmap now
(This used to be commit c4ba4db3414a2178a5314291c767d02e3f88525c)
2003-04-28 23:58:55 +00:00
Simo Sorce
8d4942e2df new helper functions to create users
(This used to be commit 74826e7ebb62ab09df68bb00fbd6097852ec5b6d)
2003-04-28 23:36:54 +00:00
Jeremy Allison
512c11c445 Fixes from Ronan Waide <waider@waider.ie> for large RPC writes.
Jeremy.
(This used to be commit 30512b7d3ea3470e4aca08638a5c0ea14791a6e7)
2003-04-28 18:43:46 +00:00
Jelmer Vernooij
81256ecbb9 Use NTSTATUS as return value for smb_register_*() functions and init_module()
function. Patch by metze with some minor modifications.
(This used to be commit f4576757d1d52a8f1b96894c869bb76450003fd1)
2003-04-28 18:33:25 +00:00
Volker Lendecke
df91b5db2b Typo in error message
Volker
(This used to be commit a1cae680f98a128ab73306196a303d76e41f24c2)
2003-04-28 12:29:25 +00:00
Andrew Bartlett
f0c62a47f7 Merge memory leak fixes in our trusted domain list from 3.0 to HEAD
(This used to be commit c7f06f3a480feb1c7b1a44d16c05e1c238800b15)
2003-04-28 09:14:31 +00:00
Andrew Bartlett
e627d756db Merge compile warning fixes from 3.0
(This used to be commit c0903951a144b1f0502e77437ea166d7a26393ba)
2003-04-28 09:02:21 +00:00
Andrew Bartlett
d031ba5c83 Merge compile and other fixes from 3.0 to HEAD.
Including smbtorture bugfixes, and a better TCONDEV test.

Andrew Bartlett
(This used to be commit 52c5806004022f153af7d022afdb3ec7cc0d2548)
2003-04-28 08:54:51 +00:00
Tim Potter
d31cb1b468 Perform lp_load() before popt to fix -W option.
(This used to be commit d20f4bf5d84f435a7b4b692bf33f05f4ec871a50)
2003-04-28 07:03:08 +00:00
Tim Potter
a2e4ac9eef Merge of -W fixes for bug #39:
>Replace workgroup global variable with lp_workgroup()
>
>Call lp_load() before parsing command line options so we can override
>the workgroup value with the -W switch.
(This used to be commit 272d06369d79250b484a22bc7e531eecd03e7c90)
2003-04-28 06:59:08 +00:00
Tim Potter
5ef616cd5e Fix compiler warning.
(This used to be commit 6a783ca81cead3eed556570152608fd7a224f1ee)
2003-04-28 06:18:44 +00:00
Richard Sharpe
67d0f802a5 Getting ready for code that actually writes a registry file out.
(This used to be commit 22e61a7e77eabd462f192fb03b5adb1d07fa7409)
2003-04-28 06:16:01 +00:00
Tim Potter
29ac5d2873 Two character tabs - I don't think so.
(This used to be commit 40d370bec6ef14cfa85e75cdb2f9122110ae9f1d)
2003-04-28 05:40:46 +00:00
Tim Potter
39fbda7f03 Return NT_STATUS_UNSUCCESSFUL if the sourcedata and echodata rpcs
return unexpected data.

Closes bug #2.
(This used to be commit 0c3314ab97331aa709216e7ad2a1a0c8605eb160)
2003-04-28 03:33:56 +00:00
Jelmer Vernooij
ed12657e77 Fix number of arguments to asprintf()
(This used to be commit 5e4e6a6ed08f1b4fe97bbd91f983039143cc9939)
2003-04-28 00:29:00 +00:00
Jelmer Vernooij
1914b3ba9f Add 'smbiconv' program - a clone of the 'iconv' utility
that uses samba's internal iconv() functions. Useful for
testing purposes.
(This used to be commit 674b67198311b4e0fb2d8afd8b56b499286fc370)
2003-04-27 20:49:18 +00:00
Simo Sorce
88e41f9e20 prepare to get _nua out of the door (but back in from the window ;-)
(This used to be commit 09eb02cba0747ae47aa4a76f4fac69af293a774a)
2003-04-27 12:47:41 +00:00
Simo Sorce
e06940968a default remote idmap backend is null
(This used to be commit 16302b080a572a1cb0983f5044a7ebf51cdf2fa3)
2003-04-27 12:25:53 +00:00
Simo Sorce
c737b1f758 make winbind use idmap as well.
change idmap_init call

removed ldap backend for winbind idmap, seem it had problems anyway and it
have to be reworked to work with idmap without calling winbind code.

simo
(This used to be commit 9d7d007443fc75264b2764b90f272ffc40c9be6c)
2003-04-27 12:07:20 +00:00
John Terpstra
8657fc91da PAtch from VORLON
(This used to be commit 2f266669b22cba6771189a9eb4503bf64ebb744b)
2003-04-26 19:45:07 +00:00
Gerald Carter
e82f3c4461 round three of CIDR fixes; spotted by Tomoki AONO
(This used to be commit 920958a392b41c23ecd4db3ca32ae90a2e09bff9)
2003-04-26 16:18:39 +00:00