summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Back out some of the less well thought out ideas from last weeks work onAndrew Bartlett2002-01-265-33/+24
| | | | | | | | | | | winbind default domains, particulary now I understand whats going on a lot better. This ensures that the RPC client code does as little 'magic' as possible - this is up to the application/user. (Where - for to name->sid code - it was all along). This leaves the change that allows the sid->name code to return domains and usernames in seperate paramaters. Andrew Bartlett (This used to be commit 5dfba2cf536f761b0aee314ed9e30dc53900b691)
* Bring this code into line with new winbind_lookup_name() interface. I thinkAndrew Bartlett2002-01-261-10/+23
| | | | | | | | | | this might need a bit more work - or at least documentation. This is certainly a worthwile little hack, as it avoids the need to invert the group database. I don't think we should allow unqualified domains here - as that allows us to distinguish between (at least some) usernames and these 'special' groups. (This used to be commit 151dd7bc6c61e19a993017e5e0b50314801e26de)
* Make a talloc'ed copy of this strings so we can pass the right kind of pointerAndrew Bartlett2002-01-261-1/+5
| | | | | | | | to the function. This fixes a nice little segfault the brute-force-casting created. :-) Andrew Bartlett (This used to be commit c84fa7f5fd62940e397d3353fb688f283349393e)
* Rework lookup_name() to take seperate username/domain args, and to removeAndrew Bartlett2002-01-261-31/+24
| | | | | | varioius crazy 'if winbind didn't find it' cases. This makes winbind default domain support easier to intergrate with smbd. (This used to be commit 3e71521957d579f00249679de837490aca5ba92f)
* Add the become_root()/unbecome_root() wrapper around the lookup_name() call,Andrew Bartlett2002-01-261-1/+9
| | | | | and its new args. (This used to be commit e7b3d64f6055b5d3b036f525f0ece3c9479d4f7a)
* Move the lsa code across to the changed args for lookup_name, and surround itAndrew Bartlett2002-01-262-6/+13
| | | | | | | | | | | | | in become_root()/unbecome_root(). Also only allocate the memory the client reqests - and don't allow the client to trigger an SMB_ASSERT if they ask for 'more'. Up the maximum number of sids allowed, and note that this is an arbiary guess, and can be raised without consequence. Andrew Bartlett (This used to be commit 6e7667125d142670db7393ed7a48386f3821d896)
* We may as well not use these temporary variables - they are only used once andAndrew Bartlett2002-01-261-3/+1
| | | | | just make it harder to debug (gcc stips optomises them away). (This used to be commit 100d2705ddfa1fde73a0bb06e8e097b2b1cbf36a)
* local_lookup_name() doens't acutally use its 'domain' argument, so drop it andAndrew Bartlett2002-01-261-5/+3
| | | | | make its use clearer. (This used to be commit d1ea20cc2392f8ba4ac4241f9b5ec14489e49147)
* Change the winbind interface to use seperate 'domain' and 'username' feilds forAndrew Bartlett2002-01-269-149/+56
| | | | | | | | | | the sid->uid and uid->sid conversions. Remove some duplicate arguments from these funcitons, and update the request/response structures for this and the 'winbind domain name' feature. As such 'winbindd_lookup_name' now takes both a domain and username. (This used to be commit ce1b4d4c309e4a60bec5a53224585bd504264672)
* Allow a winbind client to obtain the server's domain name.Andrew Bartlett2002-01-261-1/+13
| | | | (This used to be commit 85018fecfad1f7f6ef44b511bac937881a7bf937)
* Remove the 'direct to winbind' hacks, as they should (if I understandAndrew Bartlett2002-01-261-12/+0
| | | | | | | | | correctly) be no longer needed. This is in aid of the 'winbind default domain' code - which works much better when smbd always goes via the standard unix interfaces. Andrew Bartlett (This used to be commit a41fe2f6c845789c719de1d9a26a1374fb0e7fdb)
* This always points at a string literal, so it probably should be 'const'.Andrew Bartlett2002-01-261-1/+1
| | | | (This used to be commit e72e511935ce7f2b658a133bd536833864bc6a92)
* Fix up a security issue with the way we handle domain groups retuned on theAndrew Bartlett2002-01-263-25/+20
| | | | | | | | | | | | info3. These are RIDs, and it only makes sense to combine them with the domain SID returned with them. This is important for trusted domains, where that sid might be other than the one we currently reterive from the secrets.tdb. Also remove the become_root()/unbecome_root() wrapper from around both remaining TDB users: Both are now initialised at smbd startup. Andrew Bartlett (This used to be commit 554842e0a55155193f25aefca6480b89d5c512ca)
* fix typoAndrew Bartlett2002-01-261-1/+1
| | | | (This used to be commit 8ffc024ebc73dee32a9dfc1873e824c996205475)
* The new plugable password backend system needs to be initialised afterAndrew Bartlett2002-01-261-5/+5
| | | | | | | lp_load(). Andrew Bartlett (This used to be commit 168c712bf3b8be19e6e72b7bf4563ed3ae87c176)
* These changes commited on a 'no less broken' basis.Andrew Bartlett2002-01-261-7/+5
| | | | | | | | | | | | | | | | | | The previous code attempted to call winbind to find out the domain sid. This couldn't work for a number of reasons - not the least of which was that both the client and server ends would reject any name (in this case domain name) without a \ in it (or lp_winbind_seperator()). I think this is what was intended to occour. If there is still some need to contact winbind for this information, I suggest a new call be created for this - as it the server-side code doesn't allow for this information to be extracted easily in any case. Finally, it gets in the way of the default domain code a bit - hence why I was actually looking at it... Andrew Bartlett (This used to be commit 5fe1ea7f11a314a42f867a4f159c1c63c516568f)
* Try to get the compiler not to complain about assignments and truth values...Andrew Bartlett2002-01-261-2/+1
| | | | | Andrew Bartlett (This used to be commit 6650b21ceabefab037cfd3b135039914fb75e3a9)
* Try to move towards slightly sane linking for Samba by removing some pdb_...()Andrew Bartlett2002-01-262-29/+62
| | | | | | | | | | | calls from rpc_parse/parse_net.c - instead these values are passed as a paramater. Unfortunetly some there is still some samr work to be done before this is actually useful. Andrew Bartlett (This used to be commit 4fc9e16ad7a77cf2e37b27640c0dec2052e9cda0)
* Add some information tidbits to an error DEBUG().Andrew Bartlett2002-01-261-1/+1
| | | | (This used to be commit 3db417c2ebfda0d5872dee39e36edc4fb6299b9a)
* Fixed ADDPRINTEREX to take a devmode and a security descriptor...Jeremy Allison2002-01-263-36/+37
| | | | | Jeremy. (This used to be commit 27f65b3aad13ecd33bbb84048d70e3dde212f278)
* that's the wins replication daemon !Jean-François Micouleau2002-01-258-2/+2789
| | | | | | | there are still some work to do on it but it's already functionnal. J.F. (This used to be commit 2506c98d19263bd5f367a488c2238dcdfec46ee9)
* rewrote nmbd's wins backend to use a tdb instead of a flat text file.Jean-François Micouleau2002-01-254-267/+683
| | | | | | | | | | | | | 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. (This used to be commit b902e087d06c32797af19021a7f56895d86d7364)
* Change this code so that we don't do a lookup_name() on root.Andrew Bartlett2002-01-251-11/+3
| | | | | | | | | | | | 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 (This used to be commit f0137ac126f782e83ed15d8e905def708cdb6c64)
* Enable net ads commands to use existing tickets if the user doesn't specify ↵Jim McDonough2002-01-253-5/+24
| | | | | | 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. (This used to be commit 7e5d7dfa834c0161460bde8a2f0d4824c0a0d1fe)
* Fixed display of "remote downlevel document" in old print job submissionJeremy Allison2002-01-253-4/+14
| | | | | | case. Jeremy. (This used to be commit 248770d73072e36fd9812ec5986dce5380dfab33)
* Make systemtime work for spooling on bigendian systems. Fix fromJeremy Allison2002-01-251-3/+20
| | | | | | Benjamin (Bj) Kuit bj@it.uts.edu.au. Jeremy. (This used to be commit 5f4de275a3a63a95e76d077ffc94321a078833bf)
* new message type for nmbdJean-François Micouleau2002-01-251-0/+1
| | | | | J.F. (This used to be commit 5fef8a5ad29074bcf02904a1cca72133d57cc3e4)
* remove unused variableJean-François Micouleau2002-01-251-1/+0
| | | | | J.F. (This used to be commit ca7665c6b3618d3160bbd8e55ab56a8783cf8934)
* picky about reallocJean-François Micouleau2002-01-251-5/+6
| | | | | J.F. (This used to be commit 873dba59cf4e1f7ebb3593d890b9de7c8cd25653)
* merge from 2.2Gerald Carter2002-01-251-1/+1
| | | | (This used to be commit 7dc1c34145d66f4bbc5c6ce0bca4b224088366af)
* Passdb changes:Andrew Bartlett2002-01-253-11/+30
| | | | | | | | | | | 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 (This used to be commit 7d576d89d7b4a7b95e87a844568d7d7cd89f0542)
* Fix a 'const' warning.Andrew Bartlett2002-01-251-1/+1
| | | | (This used to be commit 56be51d648da971bcf1250470b29918e43dc622b)
* Bring auth_winbind into line with the protocol changesAndrew Bartlett2002-01-251-0/+3
| | | | | Andrew Bartlett (This used to be commit c796799afd69fe627b1c8e51fb47957d30da9fae)
* micro fix :-)Simo Sorce2002-01-251-0/+1
| | | | (This used to be commit 8929f07a15e7c6f6dbc72b1c50b45eb4c321d516)
* Removed dodgy init of local variable.Tim Potter2002-01-251-1/+1
| | | | (This used to be commit 1f7172b48e77dcda8bfd20d8e79a90b523727493)
* Return correct RPC fault PDU on bad handle incoming.Jeremy Allison2002-01-253-0/+15
| | | | | Jeremy. (This used to be commit 0db93d8752197e213f0974edae53e2dafdd77b51)
* Much more useful handling of backup domain controllers in winbindd. HonourTim Potter2002-01-251-25/+51
| | | | | | | | | 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. (This used to be commit fc7ed1b4a8774a6a07a8d8fd08d9d2f15cd5c1dc)
* Remove check for passwordserver = "*" as we now initialise it.Tim Potter2002-01-251-1/+6
| | | | | | Added TODO about perhaps doing a SAMLOGON udp/138 request before a cli_full_connection in connect_to_domain_password_server() (This used to be commit b61e40a5be3b8bacc74399902169755dbc4c7fca)
* Initialise password server to "*" in init_globals()Tim Potter2002-01-251-0/+1
| | | | (This used to be commit 97b243c488e8b976e40c6d873282a153f80c06e4)
* Removed unused static variable.Tim Potter2002-01-251-1/+0
| | | | (This used to be commit 7c2d7205938ddd958b8399599febbf63ac4c8a88)
* minor fixesSimo Sorce2002-01-254-12/+15
| | | | (This used to be commit 04f492980b73800b60dde764fdeb43f2eab79624)
* merge from 2.2Gerald Carter2002-01-2413-1018/+397
| | | | (This used to be commit 2137c7163475691056fe1701b75128e238520b05)
* handle filenames like .bashrc better in the new mangling codeAndrew Tridgell2002-01-241-8/+12
| | | | (This used to be commit 05adb30eabceea0ebbd7a7831533e2d4f20e58c8)
* Check request flag for unicode capability and respond accordingly, rather ↵Jim McDonough2002-01-231-1/+2
| | | | | | than only doing unicode. smbfs didn't work. (This used to be commit 95857a3515d67effb1242ca07daa5643458bb2f0)
* Oops...Andrew Bartlett2002-01-231-1/+1
| | | | (This used to be commit 9b63a872239bf7757c802bb3db3761cf3ec66e85)
* getpwnam -> getpwnam_alloc.Andrew Bartlett2002-01-236-13/+27
| | | | | idra has promised not to revert these this time :-) (This used to be commit f556ad67e82518f5a024ffe9184ff9430ab5c541)
* Change the order of this a bit - as unix password change can fail.Andrew Bartlett2002-01-231-11/+12
| | | | | | | This due for abstraction into chgpasswd.c shortly. Andrew Bartlett (This used to be commit 635942ae21793136814a84b1d344f411a5d6e242)
* Sync up startpageprinter with appliance.Tim Potter2002-01-231-5/+5
| | | | (This used to be commit 6025ab201aa34bbf4a7e897149ef6ba370a89703)
* merge from 2.2Gerald Carter2002-01-231-3/+3
| | | | (This used to be commit 8ed7c1ffad2df03c66151c1dfe7477301bd3ebad)
* Merge of fixes from 2.2.Jeremy Allison2002-01-223-15/+15
| | | | | Jeremy. (This used to be commit 6406a42d012184f5289d4a2b1c07a55556635fe4)