1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-13 08:23:49 +03:00
Commit Graph

484 Commits

Author SHA1 Message Date
Stefan Metzmacher
d19293982b r23419: initialize variable...
metze
2007-10-10 14:53:17 -05:00
Andrew Bartlett
1abda90f15 r23412: We don't need hdb.h here any more 2007-10-10 14:53:16 -05:00
Stefan Metzmacher
4fb9e4a353 r23115: the attribute array needs to be NULL terminated...
hopefully fix the crash on some hosts in the farm...

metze
2007-10-10 14:52:51 -05:00
Stefan Metzmacher
587f70e153 r22992: add a function to attach the dsdb_schema to a ldb_context
loaded from ldif files. The first file should contain
the info's about the 'prefixMap' attribute in the first ldif chunk.
The 2nd file should contain all attributes and classes.

metze
2007-10-10 14:52:37 -05:00
Stefan Metzmacher
b592ac1c2c r22991: ignore '@foo' attributes in the repl_meta_data module
metze
2007-10-10 14:52:37 -05:00
Andrew Tridgell
c0f65eb656 r22969: fix some more places where we could end up with more than one event
context. We now have an event context on the torture_context, and we
can also get one from the cli_credentials structure
2007-10-10 14:52:34 -05:00
Stefan Metzmacher
58551f2f28 r22944: fix bug #4618:
rename private -> private_data

metze
2007-10-10 14:52:30 -05:00
Jelmer Vernooij
74d51579af r22769: Fix include location. 2007-10-10 14:52:16 -05:00
Jelmer Vernooij
a90202abca r22762: Some ldb_map changes:
* Change license to LGPL, so it can be used by non-Samba users of
LDB (cleared with Martin as well).

* Include ldb_map in standalone build.

* Move ldb_map to its own directory
2007-10-10 14:52:15 -05:00
Jelmer Vernooij
1093875d59 r22681: Fix standalone ldb build when parent directory name != ldb. 2007-10-10 14:52:00 -05:00
Andrew Bartlett
c0fd6f6339 r22557: Simo has long bugged me that the paths in the sam.ldb partitions were
not relative to the location of the sam.ldb, but instead
lp_private_dir().

This fixes that issue.

Andrew Bartlett
2007-10-10 14:51:43 -05:00
Andrew Bartlett
ef9320ae5b r22531: Fix up OpenLDAP schema map to almost pass 'make test'.
Andrew Bartlett
2007-10-10 14:51:38 -05:00
Andrew Bartlett
465f181168 r22522: Print why we can't find these entries.
Andrew Bartlett
2007-10-10 14:51:37 -05:00
Andrew Bartlett
a354ec2822 r22521: Don't fail the module load just because we don't have a schema yet.
This code to be replaced by metze's schema loader soon...

Andrew Bartlett
2007-10-10 14:51:37 -05:00
Stefan Metzmacher
09da9f6490 r22508: at option for the startup delay
metze
2007-10-10 14:51:35 -05:00
Andrew Bartlett
d7cd4b768a r22497: Support renaming objectclasses and attributes for the LDAP backend.
OpenLDAP is fussy about operational attributes in user-supplied
schema.

Andrew Bartlett
2007-10-10 14:51:33 -05:00
Andrew Bartlett
9908a05ef7 r22476: The OID match is used very oddly in AD, as it is often used for fields
that contain attribute names and objectClasses.  Make it a case
insensitive string for now.

Andrew Bartlett
2007-10-10 14:51:31 -05:00
Stefan Metzmacher
0dc78f7439 r22472: Commit the start of the DRSUAPI pull replication service.
It doesn't work completely yet because we aren't able to
resolve DNS SRV records. And also we also need a kdc locator
plugin...

But with some hacks the pull replication works fine

metze
2007-10-10 14:51:30 -05:00
Stefan Metzmacher
7f07895cac r22406: this dependencies should also be private
metze
2007-10-10 14:51:15 -05:00
Stefan Metzmacher
0096e068d0 r22196: give better error codes to make RPC-UNIXINFO pass
metze
2007-10-10 14:50:03 -05:00
Andrew Bartlett
a29eb8f7e5 r22120: Expand the RPC-CRACKNAMES test, to test more values and expose patterns.
Fix up our server side implementation to pass almost all the tests (a
couple are skipped).

Don't require the DsGetDomainControllerInfo calls to pass, just get
some info from them.

Andrew Bartlett
2007-10-10 14:49:53 -05:00
Andrew Bartlett
7d04a36cdb r22119: Where we get a request to 'crack' a user principal name from a
compleatly unknown domain, return the correct error code.

Andrew Bartlett
2007-10-10 14:49:52 -05:00
Stefan Metzmacher
e44b6df138 r21859: add a comment why we remove the rid_crypt obfuscation
metze
2007-10-10 14:49:37 -05:00
Stefan Metzmacher
8fcd5209ae r21842: fix typo in comment
metze
2007-10-10 14:49:36 -05:00
Stefan Metzmacher
e3be33c1d9 r21839: add my email address
metze
2007-10-10 14:49:35 -05:00
Stefan Metzmacher
7e0620e524 r21838: generate no metadata for constructed attributes
metze
2007-10-10 14:49:35 -05:00
Andrew Bartlett
eef710668f r21806: I've been working over the last week to fix up the LDAP backend for
Samba4.  This only broke on global catalog queries, which turned out to
be due to changes in the partitions module that metze needed for his
DRSUAPI work.

I've reworked partitions.c to always include the 'problematic' control,
and therefore demonstrated that this is the issue.  This ensures
consistency, and should help with finding issues like this in future.

As this control (DSDB_CONTROL_CURRENT_PARTITION_OID) is not intended to
be linearised, I've added logic to allow it to be skipped when creating
network packets.

I've likewise make our LDAP server skip unknown controls, when marked
'not critical' on it's input, rather than just dropping the entire
request.  I need some help to generate a correct error packet when it is
marked critical.

Further work could perhaps be to have the ldap_encode routine return a
textual description of what failed to encode, as that would have saved
me a lot of time...

Andrew Bartlett
2007-10-10 14:49:29 -05:00
Stefan Metzmacher
c543ee5745 r21773: fix typo orginating -> originating
and use the struct member names in all cases

metze
2007-10-10 14:49:24 -05:00
Stefan Metzmacher
59fffa7ba1 r21772: add DS_BEHAVIOR_WIN2003_INTERIM constant
metze
2007-10-10 14:49:24 -05:00
Stefan Metzmacher
08b8e9acff r21503: add usefull function to get the site dn for the local server
metze
2007-10-10 14:48:46 -05:00
Andrew Bartlett
47c8a059c4 r21497: Pass more of the RPC-CRACKNAMES test by using the new search_options control.
Andrew Bartlett
2007-10-10 14:48:45 -05:00
Andrew Bartlett
2b3df7f38d r21496: A number of ldb control and LDAP changes, surrounding the
'phantom_root' flag in the search_options control

- Add in support for LDB controls to the js layer
- Test the behaviour
- Implement support for the 'phantom_root' flag in the partitions module
- Make the LDAP server set the 'phantom_root' flag in the search_options control
  - This replaces the global_catalog flag passed down as an opaque pointer
- Rework the string-format control parsing function into
  ldb_parse_control_strings(), returning errors by ldb_errorstring()
  method, rather than with printf to stderr
- Rework some of the ldb_control handling logic

Andrew Bartlett
2007-10-10 14:48:44 -05:00
Stefan Metzmacher
26d51741b6 r21470: generate Primary:WDigest blob with precalculated digest-md5 hashes:
see http://technet2.microsoft.com/WindowsServer/en/library/717b450c-f4a0-4cc9-86f4-cc0633aae5f91033.mspx?mfr=true
for how the hashes are supposed to be (but w2k3 doesn't to some correctly...)

this is a verify nice tool to test the hash genaration, but
you need to add support for "" realm strings...
http://fresh.t-systems-sfr.com/unix/src/www/httpauth-0.6.tar.gz:a/httpauth-0.6/tools/mkha1.c

metze
2007-10-10 14:48:40 -05:00
Stefan Metzmacher
4bd0ddeb80 r21465: the LDAP-UPTODATEVECTOR test shows that the replUpToDateVector
doesn't contain an entry for the local invocation_id

metze
2007-10-10 14:48:39 -05:00
Stefan Metzmacher
91f7a094cf r21441: create a union for the PrimaryKerberosBlob content
so that ndr_pull will fail if version isn't 3 and we notice
if the format changes...

metze
2007-10-10 14:48:35 -05:00
Stefan Metzmacher
e20b53f6fe r21434: - get rid of "krb5Key"
- use "sambaPassword" only as virtual attribute for passing
  the cleartext password (in unix charset) into the ldb layer
- store des-cbc-crc, des-cbc-md5 keys in the Primary:Kerberos
  blob to match w2k and w2k3
- aes key support is disabled by default, as we don't know
  exacly how longhorn stores them. use password_hash:create_aes_key=yes
  to force creation of them.
- store the cleartext password in the Primary:CLEARTEXT blob
  if configured

TODO:
 - find out how longhorn stores aes keys
 - find out how the Primary:WDigest blob needs to be constructed
   (not supported by w2k)

metze
2007-10-10 14:48:34 -05:00
Stefan Metzmacher
97fc985bd0 r21395: fix comments
metze
2007-10-10 14:48:25 -05:00
Stefan Metzmacher
e96aa89800 r21364: cosmetic change: it's nicer to use the KEYTYPE_ macro
for the keytype field...

metze
2007-10-10 14:48:20 -05:00
Stefan Metzmacher
dc4242c09c r21362: rename:
"ntPwdHash" => "unicodePwd"
"lmPwdHash" => "dBCSPwd"
"sambaLMPwdHistory" => "lmPwdHistory"
"sambaNTPwdHistory" => "ntPwdHistory"

Note: you need to reprovision after this change!

metze
2007-10-10 14:48:20 -05:00
Stefan Metzmacher
ff13b21102 r21359: remove the rid encryption before storing the password hashes
We decided to store them plain in our ldb

metze
2007-10-10 14:48:19 -05:00
Stefan Metzmacher
cdfd4ee8e5 r21355: work in child domains, CN=Configuration isn't always under the domain dn
metze
2007-10-10 14:48:18 -05:00
Stefan Metzmacher
23adca4e34 r21315: ldb now supports filters like (&(dn=%s)(&(objectClass=kerberosSecret)(privateKeytab=*))) again
we can use such a filter:-)

we should only update the keytab for records matching this filter,
that means we need to do a search before calling cli_credentials_set_secrets()

metze
2007-10-10 14:48:09 -05:00
Stefan Metzmacher
608d24f001 r21306: fix the RPC-LSA tests the admin couldn't no longer get the 'currentValue'
attribute...

this needs more works, but make it work again for now

metze
2007-10-10 14:48:07 -05:00
Stefan Metzmacher
7146e265a4 r21296: remove the session specific encryption from the attributes
before storing them.

metze
2007-10-10 14:48:04 -05:00
Stefan Metzmacher
181b3a031f r21282: we only need one for loop...
metze
2007-10-10 14:44:59 -05:00
Stefan Metzmacher
f2af44d204 r21281: move constinancy checks to the beginning of the function
metze
2007-10-10 14:44:58 -05:00
Andrew Bartlett
c3977b4bae r21179: Anything more complex than this causes the keytab never to be updated...
Andrew Bartlett
2007-10-10 14:44:43 -05:00
Andrew Bartlett
6ce557a1af r21135: Instead of having hooks to update keytabs as an explicit thing, update
them as a hook on ldb modify, via a module.

This should allow the secrets.ldb to be edited by the admin, and to
have things update in the on-disk keytab just as an in-memory keytab
would.

This isn't really a dsdb plugin, but I don't have any other good ideas
about where to put it.

Andrew Bartlett
2007-10-10 14:44:31 -05:00
Stefan Metzmacher
4d6629c683 r20978: 300 seconds as interval is ok, when we do nothing
metze
2007-10-10 14:44:16 -05:00
Stefan Metzmacher
f7e82a0c94 r20977: start the 'drepl' service, which currently does nothing by default,
but make it less verbose

metze
2007-10-10 14:44:16 -05:00