~ubuntu-desktop/libpam-freerdp/ubuntu

« back to all changes in this revision

Viewing changes to src/pam-freerdp.c

  • Committer: Ted Gould
  • Date: 2012-08-21 23:47:16 UTC
  • mfrom: (1.3.4)
  • Revision ID: ted@gould.cx-20120821234716-x8vy8isbkwbw3ars
* New upstream release.
  * Now with auth helper!

Show diffs side-by-side

added added

removed removed

Lines of Context:
130
130
        case 0: { /* child */
131
131
                dup2(stdinpipe[0], 0);
132
132
 
133
 
                char * args[7];
 
133
                char * args[5];
134
134
 
135
 
                args[0] = XFREERDP;
136
 
                args[1] = "--plugin";
137
 
                args[2] = "rdpsnd.so";
138
 
                args[3] = "--no-nla";
139
 
                args[4] = "-f";
140
 
                args[5] = "--from-stdin";
141
 
                args[6] = NULL;
 
135
                args[0] = AUTH_CHECK;
 
136
                args[1] = rhost;
 
137
                args[2] = ruser;
 
138
                args[3] = rdomain;
 
139
                args[4] = NULL;
142
140
 
143
141
                struct passwd * pwdent = getpwnam(username);
144
142
                if (pwdent == NULL) {
164
162
                int forkret = 0;
165
163
                int bytesout = 0;
166
164
 
167
 
                bytesout += write(stdinpipe[1], ruser, strlen(ruser));
168
 
                bytesout += write(stdinpipe[1], " ", 1);
169
165
                bytesout += write(stdinpipe[1], password, strlen(password));
170
 
                bytesout += write(stdinpipe[1], " ", 1);
171
 
                bytesout += write(stdinpipe[1], rdomain, strlen(rdomain));
172
 
                bytesout += write(stdinpipe[1], " ", 1);
173
 
                bytesout += write(stdinpipe[1], rhost, strlen(rhost));
174
 
                bytesout += write(stdinpipe[1], " ", 1);
 
166
                bytesout += write(stdinpipe[1], "\n", 1);
175
167
 
176
168
                close(stdinpipe[1]);
177
169