Asanka C. Herath
94aa4de1b9
Windows: Don't treat drive letters as keytab types
2010-12-02 01:18:03 -05:00
Asanka C. Herath
3e8172f9e3
Initialize allocated memory in any_resolve()
...
Otherwise we might attempt to free an uninitialized pointer.
2010-12-02 01:18:02 -05:00
Love Hornquist Astrand
42f9c644cf
Also try key usage 8 for tgs-rep subkey
...
If the is Windows 2000 DC, we need to retry with key usage 8 when doing ARCFOUR.
Thanks to Andrew and Tridge that helped me debug this using their systems.
2010-11-29 11:19:24 -08:00
Asanka C. Herath
6d662f71d7
Windows: Fix export lists
2010-11-29 10:53:49 -05:00
Love Hornquist Astrand
2ec1c3fbec
use int32_t for krb5_kvno
2010-11-28 11:18:55 -08:00
Andrew Bartlett
e189d712ce
Don't dereference NULL in error verify_checksum error path
...
Andrew Bartlett
Signed-off-by: Love Hornquist Astrand <lha@h5l.org >
2010-11-28 09:46:43 -08:00
Love Hornquist Astrand
24d628edf3
make test_config work again
2010-11-26 12:28:45 -08:00
Love Hornquist Astrand
0d9e385c7e
remove prefix for librfc3961.la sources
2010-11-26 11:25:13 -08:00
Asanka C. Herath
f974c34580
Deal with backslash escaped quotes
2010-11-26 00:35:31 -05:00
Asanka C. Herath
d58d572e60
Windows: Add missing extension
2010-11-26 00:34:59 -05:00
Asanka C. Herath
d9ee9cc3b6
Tests for string escaping in config files
2010-11-26 00:34:40 -05:00
Asanka C. Herath
e851b85700
Windows: Fix export for krb5_enomem
2010-11-25 23:51:43 -05:00
Love Hornquist Astrand
c6d0dea6be
remove dup prototype, fix the ok_as_delegate protocol
2010-11-25 11:21:05 -08:00
Love Hornquist Astrand
b294b673a2
deprecate 524 functions
2010-11-25 10:47:35 -08:00
Love Hornquist Astrand
ea2534a55f
export krb5_enomem
2010-11-24 14:35:56 -08:00
Asanka C. Herath
aa9be97d0d
Windows: Always initialize buffers in config_reg
2010-11-24 15:33:31 -05:00
Asanka C. Herath
6e4e28c7bb
Windows: Catch up with libkrb5 changes
2010-11-24 15:33:30 -05:00
Asanka C. Herath
5b91a397f8
Increase KBR5_BUFSIZ to 2048 and use it in config_file.c
2010-11-24 15:33:19 -05:00
Asanka C. Herath
35ac353f73
Add forward declaration of get_cred_kdc_capth()
2010-11-24 15:33:14 -05:00
Asanka C. Herath
158b107005
Remove unused variable
2010-11-24 15:33:13 -05:00
Asanka C. Herath
ca114a3323
Change function pointer types to match their use
2010-11-24 15:33:12 -05:00
Asanka C. Herath
59542f4298
Unreachable code to silence older compilers
2010-11-24 15:33:07 -05:00
Asanka C. Herath
880d728e02
Un-const as necessary to silence compiler warnings
2010-11-24 15:33:07 -05:00
Asanka C. Herath
809eccb682
Windows: Add an API for reading a multistring from registry
...
The _krb5_parse_reg_value_as_string() used to concatenate
multi-strings using a space to be compatible with
krb5_config_get_strings() and friends. Add a new function that can
read a multi-string with an arbitrary delimiter character
_krb5_parse_reg_value_as_multi_string().
2010-11-24 15:32:56 -05:00
Asanka C. Herath
d3582b56c6
Define and use a path separator string
...
A colon can't be used to separate paths on Windows since they are used
in drive sepecification. Define a macro that can be used as a path
separator string. On Windows, this is defined as ";". It is a ":"
everywhere else.
2010-11-24 15:32:56 -05:00
Asanka C. Herath
0f853405fe
Add missing export and calling convention annotations
2010-11-24 15:32:49 -05:00
Asanka C. Herath
9f37626a33
Windows: Proper cleanup on failure
2010-11-24 15:32:48 -05:00
Asanka C. Herath
9d7227d1c1
Windows: Fix missing exports
2010-11-24 15:32:47 -05:00
Asanka C. Herath
fe3e119691
Windows: Use SOFTWARE\Kerberos for storing configuration
2010-11-24 15:32:44 -05:00
Asanka C. Herath
c0b62e3204
Windows: Configuration file locations can be set in the registry
2010-11-24 15:32:42 -05:00
Asanka C. Herath
dd74713e22
Windows: _krb5_load_config_from_registry() is an internal API
2010-11-24 15:32:41 -05:00
Asanka C. Herath
7569337e9f
Windows: Move cache specific code out of mit_glue.c
...
Move code for checking backwards compatible configuration file location into cache.c. Also use registry handling code from config_reg.c.
2010-11-24 15:32:41 -05:00
Asanka C. Herath
f190a65aed
Windows: Refactor and fix config_reg.c
...
We want to be able to reuse registry handling code here from elsewhere.
2010-11-24 15:32:40 -05:00
Asanka C. Herath
c3ecf0c372
Windows: Lookup configuration file %{WINDOWS}/krb5.ini
...
For backwards compatibility.
2010-11-24 15:32:36 -05:00
Asanka C. Herath
6e6468ab98
Windows: Search for config files in %{COMMON_APPDATA}/Kerberos
...
In addition to the Heimdal directory, also search in the
generic Kerberos configuration file directory.
2010-11-24 15:32:36 -05:00
Asanka C. Herath
2f2dca748d
Don't dereference a possible NULL pointer
2010-11-24 15:32:35 -05:00
Asanka C. Herath
00ba841893
Windows: Use backwards compatible registry key for default cache
...
On Windows, existing applications determine and change the default
credentials cache using the Kerberos for Windows registry key
(\Software\MIT\Kerberos5, ccname). Use it for backwards
compatibility.
2010-11-24 15:32:34 -05:00
Asanka C. Herath
45002e092c
Use rk_socket_t in lib/krb5/changepw.c
2010-11-24 15:32:33 -05:00
Asanka C. Herath
ba6c36b0d7
Windows: Fix exports for libkrb5
2010-11-24 15:32:22 -05:00
Asanka C. Herath
f40fe926ad
Windows: Comprehensive clean target
2010-11-24 15:32:13 -05:00
Asanka C. Herath
f44925e8a6
Deal with quoted strings when reading lists of config strings
2010-11-24 15:32:12 -05:00
Asanka C. Herath
03694f3505
Trim trailing slashes of plug-in paths
2010-11-24 15:32:11 -05:00
Asanka C. Herath
f159cef78a
Rename get_entry() -> _krb5_config_get_entry()
2010-11-24 15:32:11 -05:00
Asanka C. Herath
d247242f63
Windows: Registry based configuration
...
Load configuration data in the registry into a krb5_config_section.
Each registry key corresponds to a krb5_config_section and each
registry value becomes a bound string value.
The set of values contained in the root Heimdal registry key is
treated as if they were defined in the [libdefaults] section.
E.g. the configuration file:
[libdefaults]
foo = bar
[Foo]
x = y
y = {
baz = quux
}
is equivalent to the registry keys:
[HKEY_CURRENT_USER\Software\Heimdal]
"foo"="bar"
[HKEY_CURRENT_USER\Software\Heimdal\Foo]
"x"="y"
[HKEY_CURRENT_USER\Software\Heimdal\Foo\y]
"baz"="quux"
2010-11-24 15:32:08 -05:00
Asanka C. Herath
392f9541f1
Override existing plug-ins by default when loading cache plug-ins
2010-11-24 15:32:08 -05:00
Asanka C. Herath
6abe08a0a3
Validate plug-in names before loading
...
On Windows, we only want to load .dll files are plug-ins, even though
there might be other support files present in the plug-in directory.
2010-11-24 15:32:06 -05:00
Asanka C. Herath
7fea5ff69a
Use expanded path names when loading plug-ins
2010-11-24 15:32:05 -05:00
Love Hornquist Astrand
6920fbbef1
remove krb5 support
2010-11-20 14:39:20 -08:00
Love Hornquist Astrand
fae3d127a2
remove krb4 support
2010-11-20 14:38:21 -08:00
Love Hornquist Astrand
8f2e0a7010
export internal functions so we dont need private headers
2010-11-20 14:05:54 -08:00