aboutsummaryrefslogtreecommitdiff
path: root/libraries/nss-mysql/nss-mysql-1.0-config.patch
blob: 14c550a3821e057556701b3e54cad0730c2c0cbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
diff -ur nss-mysql-1.0.std/SHADOW nss-mysql-1.0/SHADOW
--- nss-mysql-1.0.std/SHADOW	2005-01-26 04:42:13.000000000 +0100
+++ nss-mysql-1.0/SHADOW	2007-05-18 16:04:32.000000000 +0200
@@ -45,7 +45,7 @@
 ## shadow extentions in your database, you must add these columns to the
 ## following SQL request.
 
-> GRANT select(user_name,password,user_id,status,name) on nss_mysql.user to
+> GRANT select(user_name,password,user_id,status) on nss_mysql.user to
   'nss-shadow'@localhost identified by 'another_password';
  
 > FLUSH PRIVILEGES;
diff -ur nss-mysql-1.0.std/nss-mysql-root.conf nss-mysql-1.0/nss-mysql-root.conf
--- nss-mysql-1.0.std/nss-mysql-root.conf	2002-08-28 18:47:53.000000000 +0200
+++ nss-mysql-1.0/nss-mysql-root.conf	2007-05-18 16:07:32.000000000 +0200
@@ -46,7 +46,8 @@
 #  2) inet:host (port will be 3306)
 #  3) host:port (inet socket will be used)
 #  4) host (inet socket on port 3306 will be used)
-shadow.host = inet:localhost:3306;
+#shadow.host = inet:localhost:3306;
+shadow.host = unix:/var/run/mysql/mysql.sock;
 
 # database: database name
 # This database MUST contain all the columns mentionned in this file
@@ -63,7 +64,7 @@
 # backup host
 # A backup MySQL server
 # Can be empty
-shadow.backup_host = inet:backup:3306;
+#shadow.backup_host = inet:backup:3306;
 
 # The following parameters are just like
 # the main server. They can be empty.
@@ -71,7 +72,7 @@
 # the corresponding value for the main
 # server will be use
 
-shadow.backup_database = nss_mysql_backup;
+#shadow.backup_database = nss_mysql_backup;
 # shadow.backup_db_user = nss;
 # shadow.backup_db_password = mAip2sFxXJcw;
 
@@ -103,39 +104,45 @@
 # if you do not have such a column, you can use something like
 # shadow.lastchange_column = UNIX_TIMESTAMP()-10;
 # The field name must be fully qualified, i.e. written as table.field
-shadow.lastchange_column = user.lastchange;
+#shadow.lastchange_column = user.lastchange;
+shadow.lastchange_column = UNIX_TIMESTAMP()-10;
 
 # min_column
 # Minimum number of days to warn user to change the password
 # if you do not have such a column, you can use something like
 # shadow.min_column = 1;
 # The field name must be fully qualified, i.e. written as table.field
-shadow.min_column = user.min;
+#shadow.min_column = user.min;
+shadow.min_column = 1;
 
 # max_column
 # Maximum number of days to warn user to change the password
 # if you do not have such a column, you can use something like
 # shadow.max_column = 2;
 # The field name must be fully qualified, i.e. written as table.field
-shadow.max_column = user.max;
+#shadow.max_column = user.max;
+shadow.max_column = 2;
 
 # warn_column
 # Number of days to warn user to change the password 
 # if you do not have such a column, you can use something like
 # shadow.warn_column = 7;
 # The field name must be fully qualified, i.e. written as table.field
-shadow.warn_column = user.warn;
+#shadow.warn_column = user.warn;
+shadow.warn_column = 7;
 
 # inact_column
 # Number of days the account may be inactive
 # if you do not have such a column, you can use something like
 # shadow.inact_column = -1; # disabled
 # The field name must be fully qualified, i.e. written as table.field
-shadow.inact_column = user.inact;
+#shadow.inact_column = user.inact;
+shadow.inact_column = -1;
 
 # expire_column
 # Number of days since 1970-01-01 until account expired 
 # if you do not have such a column, you can use something like
 # shadow.expire_column = -1; # disabled
 # The field name must be fully qualified, i.e. written as table.field
-shadow.expire_column = user.expire;
+#shadow.expire_column = user.expire;
+shadow.expire_column = -1;
diff -ur nss-mysql-1.0.std/nss-mysql.conf nss-mysql-1.0/nss-mysql.conf
--- nss-mysql-1.0.std/nss-mysql.conf	2002-08-28 18:47:53.000000000 +0200
+++ nss-mysql-1.0/nss-mysql.conf	2007-05-18 16:08:12.000000000 +0200
@@ -46,7 +46,8 @@
 #  2) inet:host (port will be 3306)
 #  3) host:port (inet socket will be used)
 #  4) host (inet socket on port 3306 will be used)
-users.host = inet:localhost:3306;
+#users.host = inet:localhost:3306;
+users.host = unix:/var/run/mysql/mysql.sock;
 
 # database: database name
 # This database MUST contain all the columns mentionned in this file
@@ -63,7 +64,7 @@
 # backup host
 # A backup MySQL server
 # Can be empty
-users.backup_host = inet:backup:3306;
+#users.backup_host = inet:backup:3306;
 
 # The following parameters work just like
 # the main server's. They can be empty.
@@ -71,7 +72,7 @@
 # the corresponding value for the main
 # server will be used 
 
-users.backup_database = nss_mysql_backup;
+#users.backup_database = nss_mysql_backup;
 # users.backup_db_user = nss;
 # users.backup_db_password = mAip2sFxXJcw;
 
diff -ur nss-mysql-1.0.std/sample.sql nss-mysql-1.0/sample.sql
--- nss-mysql-1.0.std/sample.sql	2005-01-26 04:39:06.000000000 +0100
+++ nss-mysql-1.0/sample.sql	2007-05-18 16:04:11.000000000 +0200
@@ -1,6 +1,6 @@
 # MySQL dump 8.9
 #
-# Host: localhost    Database: nss-mysql
+# Host: localhost    Database: nss_mysql
 #
 
 #