~ubuntu-branches/ubuntu/breezy/pam/breezy

« back to all changes in this revision

Viewing changes to Linux-PAM/libpam/pam_map.c

  • Committer: Bazaar Package Importer
  • Author(s): Sam Hartman
  • Date: 2004-06-28 14:28:08 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20040628142808-adikk7vtfg3pzcjw
Tags: 0.76-22
* Add uploaders
* Document location of repository
* Fix options containing arguments in pam_unix, Closes: #254904

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* pam_map.c - PAM mapping interface
 
2
 *
 
3
 * $Id: pam_map.c,v 1.1 2001/04/29 04:17:08 hartmans Exp $
 
4
 *
 
5
 * This is based on the X/Open XSSO specification of March 1997.
 
6
 * It is not implemented as it is going to change... after 1997/9/25.
 
7
 *
 
8
 */
 
9
 
 
10
#include <stdio.h>
 
11
 
 
12
#include "pam_private.h"
 
13
 
 
14
/* p 54 */
 
15
 
 
16
int pam_get_mapped_authtok(pam_handle_t *pamh,
 
17
                           const char *target_module_username,
 
18
                           const char *target_module_type,
 
19
                           const char *target_authn_domain,
 
20
                           size_t *target_authtok_len
 
21
                           unsigned char **target_module_authtok);
 
22
{
 
23
    D(("called"));
 
24
 
 
25
    IF_NO_PAMH("pam_get_mapped_authtok",pamh,PAM_SYSTEM_ERR);
 
26
 
 
27
    return PAM_SYSTEM_ERROR;
 
28
}
 
29
 
 
30
/* p 68 */
 
31
 
 
32
int pam_set_mapped_authtok(pam_handle_t *pamh,
 
33
                           char *target_module_username,
 
34
                           size_t *target_authtok_len,
 
35
                           unsigned char *target_module_authtok,
 
36
                           char *target_module_type,
 
37
                           char *target_authn_domain)
 
38
{
 
39
    D(("called"));
 
40
 
 
41
    IF_NO_PAMH("pam_set_mapped_authtok",pamh,PAM_SYSTEM_ERR);
 
42
 
 
43
    return PAM_SYSTEM_ERROR;
 
44
}
 
45
 
 
46
/* p 56 */
 
47
 
 
48
int pam_get_mapped_username(pam_handle_t *pamh,
 
49
                            const char *src_username,
 
50
                            const char *src_module_type,
 
51
                            const char *src_authn_domain,
 
52
                            const char *target_module_type,
 
53
                            const char *target_authn_domain,
 
54
                            char **target_module_username)
 
55
{
 
56
    D(("called"));
 
57
 
 
58
    IF_NO_PAMH("pam_get_mapped_username",pamh,PAM_SYSTEM_ERR);
 
59
 
 
60
    return PAM_SYSTEM_ERROR;
 
61
}
 
62
 
 
63
/* p 70 */
 
64
 
 
65
int pam_set_mapped_username(pam_handle_t *pamh,
 
66
                            char *src_username,
 
67
                            char *src_module_type,
 
68
                            char *src_authn_domain,
 
69
                            char *target_module_username,
 
70
                            char *target_module_type,
 
71
                            char *target_authn_domain)
 
72
{
 
73
    D(("called"));
 
74
 
 
75
    IF_NO_PAMH("pam_set_mapped_username",pamh,PAM_SYSTEM_ERR);
 
76
 
 
77
    return PAM_SYSTEM_ERROR;
 
78
}