mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
Move loginStatus to ldapns.schema
This commit is contained in:
parent
6db4295f43
commit
3fd074155f
2 changed files with 17 additions and 11 deletions
|
|
@ -1,4 +1,5 @@
|
|||
# $OpenLDAP$
|
||||
# $Id: ldapns.schema,v 1.3 2009-10-01 19:17:20 tedcheng Exp $
|
||||
# LDAP Name Service Additional Schema
|
||||
# http://www.iana.org/assignments/gssapi-service-names
|
||||
|
||||
|
|
@ -11,6 +12,13 @@ attributetype ( 1.3.6.1.4.1.5322.17.2.1 NAME 'authorizedService'
|
|||
EQUALITY caseIgnoreMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{256} )
|
||||
|
||||
attributetype ( 1.3.6.1.4.1.5322.17.2.2 NAME 'loginStatus'
|
||||
DESC 'Currently logged in sessions for a user'
|
||||
EQUALITY caseIgnoreMatch
|
||||
SUBSTR caseIgnoreSubstringsMatch
|
||||
ORDERING caseIgnoreOrderingMatch
|
||||
SYNTAX OMsDirectoryString )
|
||||
|
||||
objectclass ( 1.3.6.1.4.1.5322.17.1.1 NAME 'authorizedServiceObject'
|
||||
DESC 'Auxiliary object class for adding authorizedService attribute'
|
||||
SUP top
|
||||
|
|
@ -22,3 +30,9 @@ objectclass ( 1.3.6.1.4.1.5322.17.1.2 NAME 'hostObject'
|
|||
SUP top
|
||||
AUXILIARY
|
||||
MAY host )
|
||||
|
||||
objectclass ( 1.3.6.1.4.1.5322.17.1.3 NAME 'loginStatusObject'
|
||||
DESC 'Auxiliary object class for login status attribute'
|
||||
SUP top
|
||||
AUXILIARY
|
||||
MAY loginStatus )
|
||||
|
|
|
|||
|
|
@ -21,16 +21,6 @@
|
|||
static int ppolicy_cid;
|
||||
static AttributeDescription *ad_loginStatus;
|
||||
|
||||
const char *at_loginStatus =
|
||||
"( 1.3.6.1.4.1.4745.1.20.1 "
|
||||
"NAME ( 'loginStatus' ) "
|
||||
"DESC 'Currently logged in sessions for a user' "
|
||||
"EQUALITY caseIgnoreMatch "
|
||||
"SUBSTR caseIgnoreSubstringsMatch "
|
||||
"ORDERING caseIgnoreOrderingMatch "
|
||||
"SYNTAX OMsDirectoryString "
|
||||
"USAGE directoryOperation )";
|
||||
|
||||
struct paminfo {
|
||||
struct berval uid;
|
||||
struct berval dn;
|
||||
|
|
@ -667,7 +657,9 @@ int pam_pwmod(nssov_info *ni,TFILE *fp,Operation *op)
|
|||
int nssov_pam_init()
|
||||
{
|
||||
int code = 0;
|
||||
const char *text;
|
||||
if (!ad_loginStatus)
|
||||
code = register_at( at_loginStatus, &ad_loginStatus, 0 );
|
||||
code = slap_str2ad("loginStatus", &ad_loginStatus, &text);
|
||||
|
||||
return code;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue