• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/samba-3.0.13/source/passdb/

Lines Matching refs:row

67 static long PQgetlong( PGresult *r, long row, long col )
69 if ( PQgetisnull( r, row, col ) ) return 0 ;
71 return atol( PQgetvalue( r, row, col ) ) ;
74 static NTSTATUS row_to_sam_account ( PGresult *r, long row, SAM_ACCOUNT *u )
79 if ( row >= PQntuples( r ) ) return NT_STATUS_INVALID_PARAMETER ;
81 pdb_set_logon_time ( u, PQgetlong ( r, row, 0 ), PDB_SET ) ;
82 pdb_set_logoff_time ( u, PQgetlong ( r, row, 1 ), PDB_SET ) ;
83 pdb_set_kickoff_time ( u, PQgetlong ( r, row, 2 ), PDB_SET ) ;
84 pdb_set_pass_last_set_time ( u, PQgetlong ( r, row, 3 ), PDB_SET ) ;
85 pdb_set_pass_can_change_time ( u, PQgetlong ( r, row, 4 ), PDB_SET ) ;
86 pdb_set_pass_must_change_time( u, PQgetlong ( r, row, 5 ), PDB_SET ) ;
87 pdb_set_username ( u, PQgetvalue( r, row, 6 ), PDB_SET ) ;
88 pdb_set_domain ( u, PQgetvalue( r, row, 7 ), PDB_SET ) ;
89 pdb_set_nt_username ( u, PQgetvalue( r, row, 8 ), PDB_SET ) ;
90 pdb_set_fullname ( u, PQgetvalue( r, row, 9 ), PDB_SET ) ;
91 pdb_set_homedir ( u, PQgetvalue( r, row, 10 ), PDB_SET ) ;
92 pdb_set_dir_drive ( u, PQgetvalue( r, row, 11 ), PDB_SET ) ;
93 pdb_set_logon_script ( u, PQgetvalue( r, row, 12 ), PDB_SET ) ;
94 pdb_set_profile_path ( u, PQgetvalue( r, row, 13 ), PDB_SET ) ;
95 pdb_set_acct_desc ( u, PQgetvalue( r, row, 14 ), PDB_SET ) ;
96 pdb_set_workstations ( u, PQgetvalue( r, row, 15 ), PDB_SET ) ;
97 pdb_set_unknown_str ( u, PQgetvalue( r, row, 16 ), PDB_SET ) ;
98 pdb_set_munged_dial ( u, PQgetvalue( r, row, 17 ), PDB_SET ) ;
100 pdb_set_acct_ctrl ( u, PQgetlong ( r, row, 23 ), PDB_SET ) ;
101 pdb_set_logon_divs ( u, PQgetlong ( r, row, 24 ), PDB_SET ) ;
102 pdb_set_hours_len ( u, PQgetlong ( r, row, 25 ), PDB_SET ) ;
103 pdb_set_bad_password_count ( u, PQgetlong (r, row, 26 ), PDB_SET ) ;
104 pdb_set_logon_count ( u, PQgetlong ( r, row, 27 ), PDB_SET ) ;
105 pdb_set_unknown_6 ( u, PQgetlong ( r, row, 28 ), PDB_SET ) ;
107 if ( !PQgetisnull( r, row, 18 ) ) {
108 string_to_sid( &sid, PQgetvalue( r, row, 18 ) ) ;
112 if ( !PQgetisnull( r, row, 19 ) ) {
113 string_to_sid( &sid, PQgetvalue( r, row, 19 ) ) ;
117 if ( pdb_gethexpwd( PQgetvalue( r, row, 20 ), temp ), PDB_SET ) pdb_set_lanman_passwd( u, temp, PDB_SET ) ;
118 if ( pdb_gethexpwd( PQgetvalue( r, row, 21 ), temp ), PDB_SET ) pdb_set_nt_passwd ( u, temp, PDB_SET ) ;
121 if ( PQgetisnull( r, row, 20 ) || PQgetisnull( r, row, 21 ) ) pdb_set_plaintext_passwd( u, PQgetvalue( r, row, 22 ) ) ;