Lines 64-67
Link Here
|
64 |
const char *attmap_passwd_homeDirectory = "homeDirectory"; |
64 |
const char *attmap_passwd_homeDirectory = "homeDirectory"; |
65 |
const char *attmap_passwd_loginShell = "loginShell"; |
65 |
const char *attmap_passwd_loginShell = "loginShell"; |
|
|
66 |
const char *attmap_passwd_loginClass = "loginClass"; |
66 |
|
67 |
|
67 |
/* special properties for objectSid-based searches |
68 |
/* special properties for objectSid-based searches |
Lines 151-154
Link Here
|
151 |
attmap_add_attributes(set, attmap_passwd_homeDirectory); |
152 |
attmap_add_attributes(set, attmap_passwd_homeDirectory); |
152 |
attmap_add_attributes(set, attmap_passwd_loginShell); |
153 |
attmap_add_attributes(set, attmap_passwd_loginShell); |
|
|
154 |
attmap_add_attributes(set, attmap_passwd_loginClass); |
153 |
passwd_attrs = set_tolist(set); |
155 |
passwd_attrs = set_tolist(set); |
154 |
if (passwd_attrs == NULL) |
156 |
if (passwd_attrs == NULL) |
Lines 429-432
Link Here
|
429 |
char homedir[256]; |
431 |
char homedir[256]; |
430 |
char shell[64]; |
432 |
char shell[64]; |
|
|
433 |
char lclass[64]; |
431 |
char passbuffer[BUFLEN_PASSWORDHASH]; |
434 |
char passbuffer[BUFLEN_PASSWORDHASH]; |
432 |
int i, j; |
435 |
int i, j; |
Lines 542-545
Link Here
|
542 |
/* get the shell for this entry */ |
545 |
/* get the shell for this entry */ |
543 |
attmap_get_value(entry, attmap_passwd_loginShell, shell, sizeof(shell)); |
546 |
attmap_get_value(entry, attmap_passwd_loginShell, shell, sizeof(shell)); |
|
|
547 |
/* get the login class for this entry */ |
548 |
attmap_get_value(entry, attmap_passwd_loginClass, lclass, sizeof(lclass)); |
544 |
/* write the entries */ |
549 |
/* write the entries */ |
545 |
for (i = 0; usernames[i] != NULL; i++) |
550 |
for (i = 0; usernames[i] != NULL; i++) |
Lines 566-569
Link Here
|
566 |
WRITE_STRING(fp, homedir); |
571 |
WRITE_STRING(fp, homedir); |
567 |
WRITE_STRING(fp, shell); |
572 |
WRITE_STRING(fp, shell); |
|
|
573 |
WRITE_STRING(fp, lclass); |
568 |
} |
574 |
} |
569 |
} |
575 |
} |