/[smeserver]/rpms/cpu/sme8/cpu-1.4.3-fix-cn.patch
ViewVC logotype

Contents of /rpms/cpu/sme8/cpu-1.4.3-fix-cn.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Fri Nov 5 18:19:38 2010 UTC (14 years ago) by slords
Branch: MAIN
CVS Tags: cpu-1_4_3-10_el5_sme, cpu-1_4_3-8_el5_sme, cpu-1_4_3-9_el5_sme, cpu-1_4_3-6_el5_sme, cpu-1_4_3-12_el5_sme, cpu-1_4_3-11_el5_sme, cpu-1_4_3-13_el5_sme, HEAD
* Fri Nov 5 2010 Shad L. Lords <slords@mail.com> 1.4.3-6.sme
- Use gecos for cn if available, also modify cn if possible [SME: 6338]

1 diff -up cpu-1.4.3/src/plugins/ldap/ld.c.fix-cn cpu-1.4.3/src/plugins/ldap/ld.c
2 --- cpu-1.4.3/src/plugins/ldap/ld.c.fix-cn 2010-11-05 11:36:45.000000000 -0600
3 +++ cpu-1.4.3/src/plugins/ldap/ld.c 2010-11-05 11:40:11.000000000 -0600
4 @@ -437,7 +437,9 @@ ldapGetCn (void)
5 size_t slen = 0;
6 char *temp;
7
8 - if (globalLdap->first_name && globalLdap->last_name)
9 + if (globalLdap->passent->pw_gecos)
10 + temp = globalLdap->passent->pw_gecos;
11 + else if (globalLdap->first_name && globalLdap->last_name)
12 {
13 slen =
14 strlen (globalLdap->first_name) + strlen (globalLdap->last_name) + 2;
15 diff -up cpu-1.4.3/src/plugins/ldap/user.c.fix-cn cpu-1.4.3/src/plugins/ldap/user.c
16 --- cpu-1.4.3/src/plugins/ldap/user.c.fix-cn 2004-01-10 19:12:37.000000000 -0700
17 +++ cpu-1.4.3/src/plugins/ldap/user.c 2010-11-05 11:46:48.000000000 -0600
18 @@ -256,6 +256,8 @@ ldapUserCheck (int mod_op, LDAP * ld)
19 ldapBuildList (op, "objectClass", globalLdap->user_object_class,
20 userMod);
21 }
22 + else if (globalLdap->passent->pw_gecos || (globalLdap->first_name && globalLdap->last_name))
23 + userMod = ldapBuildListStr (op, "cn", ldapGetCn (), userMod);
24
25 userMod =
26 ldapBuildListStr (op, "uid", globalLdap->passent->pw_name, userMod);

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed