Andrew Bartlett [Wed, 23 Apr 2003 10:19:56 +0000 (10:19 +0000)]
Add some more info to the diags output.
Andrew Bartlett [Wed, 23 Apr 2003 10:07:25 +0000 (10:07 +0000)]
Parinoia for compleatly broken SMB servers that don't send back the right
fstype for IPC$ - assume the device type is IPC.
Andrew Bartlett
Andrew Bartlett [Wed, 23 Apr 2003 10:06:00 +0000 (10:06 +0000)]
Make this safe for -DDEVELOPER checks.
Andrew Bartlett
Andrew Bartlett [Wed, 23 Apr 2003 09:32:29 +0000 (09:32 +0000)]
This const isn't quite vaild C.
Andrew Bartlett
Andrew Bartlett [Wed, 23 Apr 2003 09:30:33 +0000 (09:30 +0000)]
add test file for FDSESS
Andrew Bartlett [Wed, 23 Apr 2003 09:26:07 +0000 (09:26 +0000)]
Add a check to ensure that the server returns the correct device type, not
just the correct error.
This should help us avoid breaking NT4 IPC$ connections, for example.
This has required that we don't overwrite the device type for IPC$ in our
tcon&X code, but only smbwrapper even uses it, and a server that doesn't send
a correct dev type breaks other things pretty badly.
In any case, I'll 'fix' smbwrapper :-).
Andrew Bartlett
Andrew Bartlett [Wed, 23 Apr 2003 08:46:39 +0000 (08:46 +0000)]
Start testing a few more things out of smbtorture in the build farm.
Andrew Bartlett
Andrew Bartlett [Wed, 23 Apr 2003 08:12:34 +0000 (08:12 +0000)]
Merge torture tests from HEAD - it looks like we had rather an incomplete
merge last time. I hope this might fix a few failures on the build farm too.
Andrew Bartlett
John Terpstra [Wed, 23 Apr 2003 04:40:03 +0000 (04:40 +0000)]
Update - closed off for now
Andrew Bartlett [Wed, 23 Apr 2003 01:44:04 +0000 (01:44 +0000)]
Try to keep existing behaviour for our printing code - never return
global_myname(), always either the name the client called us, or if they
didn't call us anything useful, our IP address.
Jerry, can you check this?
Andrew Bartlett
Andrew Bartlett [Wed, 23 Apr 2003 01:34:56 +0000 (01:34 +0000)]
Fix this for both *SMBSERVER and *SMBSERV as per comments in loadparm.c.
Andrew Bartlett
Andrew Bartlett [Wed, 23 Apr 2003 01:21:42 +0000 (01:21 +0000)]
Try to avoid setting *SMBSERVER as a 'local name'.
Andrew Bartlett
Andrew Bartlett [Wed, 23 Apr 2003 01:05:26 +0000 (01:05 +0000)]
Don't leak the session identifier string when we shut down a vuid.
Andrew Bartlett
Andrew Bartlett [Wed, 23 Apr 2003 01:04:20 +0000 (01:04 +0000)]
Now that Volker fixed the real issues with ldapsam and adding null attributes
etc, move the SAMR create_user code back to using the 'pdb_init_sam_pw' method
to fill out the attributes.
This is basicly the same code, but we really didn't need the duplication.
Also, take advantage of the fact that RIDs will always be returned back into
the SAM_ACCOUNT on ADD, so we don't need to duplicate the 'get'.
This should also help in sites with replicated LDAP - the second fetch might
occour before the first is replicated back.
Andrew Bartlett
Andrew Bartlett [Wed, 23 Apr 2003 00:59:19 +0000 (00:59 +0000)]
- Merge a memory leak fix from HEAD
- change update behaviour for new RIDs:
- store the new RID into the SAM_ACCOUNT, so that the caller get's it back
automaticly
- use this to make the code paths simpiler for the normal 'need_update' code.
We must always store a RID if we intend to use the sambaAccount objectClass
Andrew Bartlett
Andrew Bartlett [Wed, 23 Apr 2003 00:56:06 +0000 (00:56 +0000)]
Merge idra's fix for pdb_tdb segfaults from HEAD to 3.0 - sombody changed
unix_strlower semantics.
Andrew Bartlett
Gerald Carter [Wed, 23 Apr 2003 00:34:31 +0000 (00:34 +0000)]
allow the unix group in a mapping to be changed; doesn't work with LDAP right now but should be ok with tdb's
Jeremy Allison [Wed, 23 Apr 2003 00:19:30 +0000 (00:19 +0000)]
Limit the number of outstanding print notify messages for a process to
1000.
Jeremy.
John Terpstra [Tue, 22 Apr 2003 23:19:09 +0000 (23:19 +0000)]
Added Stephen Roylance's patch - Adds to Status page, a Start All, Restart All
and Stop All deamons button.
Andrew Bartlett [Tue, 22 Apr 2003 23:14:49 +0000 (23:14 +0000)]
Remove ldapsam_search_one_user_by_uid from pdb_ldap.
sambaAccount requires the rid to be present, and doing this fallback is quite
dangerous, becouse it assumes that alorithmic RIDs are in use - which is quite
often not the case.
Also finish of vl's work on 'use a function pointer, not embedded logic' to
tell lower levels that they should/should not attempt to set the user's password
into LDAP with the extended operation.
Andrew Bartlett
Christopher R. Hertel [Tue, 22 Apr 2003 20:30:55 +0000 (20:30 +0000)]
My last change left the wording a little awkward, so I fiddled it a bit.
Christopher R. Hertel [Tue, 22 Apr 2003 20:20:40 +0000 (20:20 +0000)]
The wording described "CIFS" as the successor to SMBFS. I changed it to
say that "CIFS VFS" was the successor to SMBFS.
Gerald Carter [Tue, 22 Apr 2003 18:03:55 +0000 (18:03 +0000)]
don't reset the group type unless specified
Gerald Carter [Tue, 22 Apr 2003 17:32:02 +0000 (17:32 +0000)]
update copyright notice that is written to the logs
Jeremy Allison [Tue, 22 Apr 2003 17:30:53 +0000 (17:30 +0000)]
Add runtime tests for "impossible" case with -DDEVELOPER. Trying to catch logic
error on Linux.
Jeremy.
John Terpstra [Tue, 22 Apr 2003 17:06:03 +0000 (17:06 +0000)]
Added editreg.
Volker Lendecke [Tue, 22 Apr 2003 15:54:36 +0000 (15:54 +0000)]
parse_string is only used for the authentication negotiators.
It can itself determine the length of the string it has to
transfer. Andrew B., could you take a look at the length calculation?
Is that safe?
Thanks,
Volker
Andrew Bartlett [Tue, 22 Apr 2003 15:50:15 +0000 (15:50 +0000)]
This is meant to be initialised to the size of the buffer.
Andrew Bartlett [Tue, 22 Apr 2003 15:27:38 +0000 (15:27 +0000)]
Add configure test for previous ldap modifications - we now check if the
ldap_initialze function exists, not just if we are on a particular OpenLDAP.
Andrew Bartlett
Andrew Bartlett [Tue, 22 Apr 2003 15:19:14 +0000 (15:19 +0000)]
Make pdb_ldap use a random factor in deciding how long we need to sleep.
This might help avoid killing the ldap server when all 100 smbd processes
reconnect in pulses...
Also, reduces the maximum wait time, as SMB clients will time out after 30
seconds anyway...
Andrew Bartlett
John Terpstra [Tue, 22 Apr 2003 14:56:57 +0000 (14:56 +0000)]
Update from HEAD
Andrew Bartlett [Tue, 22 Apr 2003 13:15:24 +0000 (13:15 +0000)]
Merge (HEAD->3.0) mbp's fixes to our charcnv code - don't use a staic buffer,
which can restrict things like unix_strupper() to 512 byte strings.
Andrew Bartlett
Andrew Bartlett [Tue, 22 Apr 2003 13:10:02 +0000 (13:10 +0000)]
Merge mimir's trusted domain code from HEAD -> 3.0, plus some memory
leak fixes. (secrets.c portion)
Andrew Bartlett
Andrew Bartlett [Tue, 22 Apr 2003 12:28:30 +0000 (12:28 +0000)]
Merge comment with HEAD
Andrew Bartlett [Tue, 22 Apr 2003 12:13:13 +0000 (12:13 +0000)]
Start merging mimir's trusted domain code from HEAD to 3.0. (for HEAD trusting
NT).
Volker Lendecke [Tue, 22 Apr 2003 11:25:10 +0000 (11:25 +0000)]
Setting the credentials for the netsec netlogon pipe connect upon each
samlogon call certainly breaks the credential chain. Do it once during
the bind response.
Volker
Andrew Bartlett [Tue, 22 Apr 2003 08:50:20 +0000 (08:50 +0000)]
Oops...
Andrew Bartlett
Andrew Bartlett [Tue, 22 Apr 2003 07:28:41 +0000 (07:28 +0000)]
Make our 'get DNS domain name' code try a bit harder - if gethostname() doesn't
include a domain portion, do a gethostbyname() lookup on that name.
Use this name in our PolicyPrimaryDomainInformation reply (_lsa_query_info2)
that Win2k uses when trying to trust us as a trusted domain.
(We need to do a better mapping between our Netbios and Win2k domain names,
but this will do for now - particularly annoying is the way this possibly needs
to map with our kerberos realm).
Andrew Bartlett
John Terpstra [Tue, 22 Apr 2003 06:22:20 +0000 (06:22 +0000)]
Updating from HEAD.
John Terpstra [Tue, 22 Apr 2003 06:20:47 +0000 (06:20 +0000)]
Updating docs from HEAD.
Gerald Carter [Tue, 22 Apr 2003 05:57:49 +0000 (05:57 +0000)]
default new groups to domain groups
Andrew Bartlett [Tue, 22 Apr 2003 05:32:01 +0000 (05:32 +0000)]
Fix up bugs in the new 'store sec_channel type' code - we were always joining
as a BDC.
Andrew Bartlett
Gerald Carter [Tue, 22 Apr 2003 05:14:21 +0000 (05:14 +0000)]
support referencing group by sid in all operations; allow group name to be changed
Gerald Carter [Tue, 22 Apr 2003 03:15:32 +0000 (03:15 +0000)]
wrap pdb_enum_group_mapping() in [un]become_root() so LDAP queries can get the credentials from secrets.tdb
Gerald Carter [Tue, 22 Apr 2003 02:52:15 +0000 (02:52 +0000)]
removing some ifdef'd out code
Jeremy Allison [Tue, 22 Apr 2003 01:12:52 +0000 (01:12 +0000)]
Tidyups of some dubious logic discovered whilst trying to track down a
strange oplock related issue on the PSA.
Jeremy.
Jeremy Allison [Mon, 21 Apr 2003 23:23:24 +0000 (23:23 +0000)]
Fixup a few typos for Jerry.
Jeremy.
cvs2svn Import User [Mon, 21 Apr 2003 22:21:38 +0000 (22:21 +0000)]
This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.
John Terpstra [Mon, 21 Apr 2003 22:21:37 +0000 (22:21 +0000)]
Updates.
John Terpstra [Mon, 21 Apr 2003 20:00:38 +0000 (20:00 +0000)]
Merged the two browsing documents into one. Added locking module to global.ent file.
Gerald Carter [Mon, 21 Apr 2003 19:43:25 +0000 (19:43 +0000)]
* fix segfault when no vfs objects defined
* add "sid=..." to 'net groupmap add'
Gerald Carter [Mon, 21 Apr 2003 19:42:18 +0000 (19:42 +0000)]
remove smbgroupedit from packaging scripts
Andrew Bartlett [Mon, 21 Apr 2003 17:26:37 +0000 (17:26 +0000)]
Use the -W domain option to select the SID to show
Andrew Bartlett [Mon, 21 Apr 2003 17:25:54 +0000 (17:25 +0000)]
Make it easier to select which domain to show the sid for.
John Terpstra [Mon, 21 Apr 2003 16:25:38 +0000 (16:25 +0000)]
Replacing file with correct version.
Jelmer Vernooij [Mon, 21 Apr 2003 16:21:45 +0000 (16:21 +0000)]
More docs are up to date now...
Jelmer Vernooij [Mon, 21 Apr 2003 16:16:50 +0000 (16:16 +0000)]
Add question about scope id's
Jelmer Vernooij [Mon, 21 Apr 2003 16:16:31 +0000 (16:16 +0000)]
Move information about locking to seperate chapter and
information about scope id's to the faq
Jelmer Vernooij [Mon, 21 Apr 2003 16:04:54 +0000 (16:04 +0000)]
Add new part 'Troubleshooting'
Jelmer Vernooij [Mon, 21 Apr 2003 15:19:34 +0000 (15:19 +0000)]
Create ../textdocs, ../htmldocs or ../manpages if they don't exist already
Jelmer Vernooij [Mon, 21 Apr 2003 15:19:16 +0000 (15:19 +0000)]
Fix syntax error
Jelmer Vernooij [Mon, 21 Apr 2003 14:59:38 +0000 (14:59 +0000)]
Remove obsolete information from Speed.sgml and move client-specific
info to Other-Clients.sgml
John Terpstra [Mon, 21 Apr 2003 14:39:16 +0000 (14:39 +0000)]
More updates - still a work in progress.
Andrew Bartlett [Mon, 21 Apr 2003 14:15:56 +0000 (14:15 +0000)]
The 'net' syntax has changed, so update the testsuite.
Andrew Bartlett [Mon, 21 Apr 2003 14:09:03 +0000 (14:09 +0000)]
Merge from HEAD - save the type of channel used to contact the DC.
This allows us to join as a BDC, without appearing on the network as one
until we have the database replicated, and the admin changes the configuration.
This also change the SID retreval order from secrets.tdb, so we no longer
require a 'net rpc getsid' - the sid fetch during the domain join is sufficient.
Also minor fixes to 'net'.
Andrew Bartlett
Andrew Bartlett [Mon, 21 Apr 2003 13:10:35 +0000 (13:10 +0000)]
Add const, static and fix a double free() (merge from HEAD).
Andrew Bartlett [Mon, 21 Apr 2003 13:05:51 +0000 (13:05 +0000)]
Merge whitespace and const from HEAD
Andrew Bartlett [Mon, 21 Apr 2003 13:04:39 +0000 (13:04 +0000)]
Header updates for smb signing merge
Andrew Bartlett [Mon, 21 Apr 2003 13:00:39 +0000 (13:00 +0000)]
Merge SMB signing, cli buffer clobber and NTLMSSP signing tweaks from HEAD.
Andrew Bartlett [Mon, 21 Apr 2003 12:17:02 +0000 (12:17 +0000)]
For NTLM2 (not yet even close to real implementation) we must use the
server hash for checking the server's signiture.
Andrew Bartlett
Andrew Bartlett [Mon, 21 Apr 2003 11:47:27 +0000 (11:47 +0000)]
Remove unused (#ifdef'ed) code.
Andrew Bartlett [Mon, 21 Apr 2003 11:45:46 +0000 (11:45 +0000)]
Use fstrcpy/pstrcpy when that's what we really mean...
Andrew Bartlett
Richard Sharpe [Mon, 21 Apr 2003 06:59:43 +0000 (06:59 +0000)]
Correct comments about breadth first, as the registry tree is stored in a
depth first fashion in the file.
Also add some more infrastructure needed to handle storing these trees.
Richard Sharpe [Mon, 21 Apr 2003 05:18:13 +0000 (05:18 +0000)]
Start the outline of the code to store a registry tree ...
Richard Sharpe [Mon, 21 Apr 2003 04:08:42 +0000 (04:08 +0000)]
Some comments about the format of the on-disk reg file, as well as
partially implement some routines to construct a default ACL and SEC DESC
etc.
Jelmer Vernooij [Mon, 21 Apr 2003 01:56:13 +0000 (01:56 +0000)]
Default to "passdb.xml" as default output filename instead of "-"
Jelmer Vernooij [Mon, 21 Apr 2003 01:55:37 +0000 (01:55 +0000)]
Default to "passdb.xml" as default output filename instead of "-"
Jelmer Vernooij [Mon, 21 Apr 2003 01:04:17 +0000 (01:04 +0000)]
- Fix modules build of pdb_mysql and pdb_xml
- Fix typo in script/installswat.sh
Jelmer Vernooij [Mon, 21 Apr 2003 00:38:39 +0000 (00:38 +0000)]
Pdb modules are in $libdir/pdb not $libdir/passdb
Jelmer Vernooij [Mon, 21 Apr 2003 00:38:16 +0000 (00:38 +0000)]
Pdb modules are in $libdir/pdb not $libdir/passdb
Richard Sharpe [Sun, 20 Apr 2003 21:52:55 +0000 (21:52 +0000)]
Add a -f command-line flag to specify printing all paths or only terminal
paths.
Richard Sharpe [Sun, 20 Apr 2003 21:43:07 +0000 (21:43 +0000)]
Well, we can now add keys and values and delete keys and values ...
Lots more to do, like handling regular expressions for keys, and input of
the security descriptors, etc. However, I now have to work on writing the
in-memory tree out to a file in a format that Windows can understand.
Richard Sharpe [Sun, 20 Apr 2003 20:09:39 +0000 (20:09 +0000)]
Add code to delete values ...
This needs a lot more testing and debugging, but it does delete values.
Next to see if it can add values ...
Richard Sharpe [Sun, 20 Apr 2003 18:14:28 +0000 (18:14 +0000)]
Begin the code that handles key values ... Delete a key value and add a
key value, and tidy up processing of key values when reading in the registry
file ...
Richard Sharpe [Sun, 20 Apr 2003 16:31:11 +0000 (16:31 +0000)]
Complete most of the coding for adding keys. We can now add a key.
Next, we have to add the code for adding values etc.
Richard Sharpe [Sun, 20 Apr 2003 08:55:10 +0000 (08:55 +0000)]
The code is a bit of a mess right now.
Added code to add keys to the in-momory key tree.
Added code to convert SID strings to SIDs in memory format.
Added code to construct initial security descriptors and to inherit
security descriptors.
A couple of more hours should see the code to add keys and values complete.
Then I have to start on the code to write out a registry :-(
Volker Lendecke [Sun, 20 Apr 2003 08:13:29 +0000 (08:13 +0000)]
Merge a trivial fix across from HEAD. Not that this
would work now...
Volker
Richard Sharpe [Sun, 20 Apr 2003 04:53:55 +0000 (04:53 +0000)]
More functionality, esp around adding keys and inheritance of security
descriptors etc ...
Richard Sharpe [Sun, 20 Apr 2003 02:30:24 +0000 (02:30 +0000)]
MOre functionality ... got to test it.
John Terpstra [Sun, 20 Apr 2003 00:26:50 +0000 (00:26 +0000)]
More update stuff - not finished (ofcourse!)
John Terpstra [Sat, 19 Apr 2003 22:38:47 +0000 (22:38 +0000)]
Fix typo.
John Terpstra [Sat, 19 Apr 2003 22:32:53 +0000 (22:32 +0000)]
Updates and additions.
Richard Sharpe [Sat, 19 Apr 2003 22:08:25 +0000 (22:08 +0000)]
Some more work added ...
Volker Lendecke [Sat, 19 Apr 2003 18:45:03 +0000 (18:45 +0000)]
Address gcc warnings.
I could not fix the "passing arg 5 of `ldap_search_s'" completely with
gcc -Wall. A non-developer compile does not complain though.
Volker
Volker Lendecke [Sat, 19 Apr 2003 18:44:11 +0000 (18:44 +0000)]
Address gcc warnings.
I could not fix the "passing arg 5 of `ldap_search_s'" completely with
gcc -Wall. A non-developer compile does not complain though.
Volker
Richard Sharpe [Sat, 19 Apr 2003 18:36:54 +0000 (18:36 +0000)]
Squelch some warnings, and move a bit of code around to make some future
things easier ... now on to more functionality.
Hope Jerry fixes the breakage, BTW :-)
John Terpstra [Sat, 19 Apr 2003 16:27:30 +0000 (16:27 +0000)]
Added smbgroupedit to PROGS2
Simo Sorce [Sat, 19 Apr 2003 15:40:32 +0000 (15:40 +0000)]
some readline completion exancements
still need working, does not complete remote names yet
Simo Sorce [Sat, 19 Apr 2003 15:32:16 +0000 (15:32 +0000)]
use gid_t for gids not uid_t
Simo Sorce [Sat, 19 Apr 2003 15:31:40 +0000 (15:31 +0000)]
use gid_t for gids not uid_t