r23627: Allow to pass down the lookup-level to rpccli_lsa_lookup_names().
[ira/wip.git] / source3 / libmsrpc / cac_lsarpc.c
index de53c0f483a455bb980caf960b966e0a27d545c2..d8813fc20435d4c0c472f139223db963b1712f16 100644 (file)
@@ -337,7 +337,7 @@ int cac_LsaGetSidsFromNames( CacServerHandle * hnd, TALLOC_CTX * mem_ctx,
                rpccli_lsa_lookup_names( pipe_hnd, mem_ctx, op->in.pol,
                                         num_names,
                                         ( const char ** ) op->in.names, NULL,
-                                        &sids, &types );
+                                        1, &sids, &types );
 
        if ( NT_STATUS_IS_OK( hnd->status ) ) {
                /*this is the easy part, just make the out.sids array */
@@ -662,7 +662,7 @@ int cac_LsaEnumAccountRights( CacServerHandle * hnd, TALLOC_CTX * mem_ctx,
                                                 op->in.pol, 1,
                                                 ( const char ** ) &( op->in.
                                                                      name ),
-                                                NULL, &user_sid, &type );
+                                                NULL, 1, &user_sid, &type );
 
                if ( !NT_STATUS_IS_OK( hnd->status ) )
                        return CAC_FAILURE;
@@ -928,7 +928,7 @@ int cac_LsaOpenAccount( CacServerHandle * hnd, TALLOC_CTX * mem_ctx,
                                                 op->in.pol, 1,
                                                 ( const char ** ) &( op->in.
                                                                      name ),
-                                                NULL, &user_sid, &type );
+                                                NULL, 1, &user_sid, &type );
 
                if ( !NT_STATUS_IS_OK( hnd->status ) )
                        return CAC_FAILURE;
@@ -998,7 +998,7 @@ int cac_LsaAddPrivileges( CacServerHandle * hnd, TALLOC_CTX * mem_ctx,
                                                 op->in.pol, 1,
                                                 ( const char ** ) &( op->in.
                                                                      name ),
-                                                NULL, &user_sid, &type );
+                                                NULL, 1, &user_sid, &type );
 
                if ( !NT_STATUS_IS_OK( hnd->status ) )
                        return CAC_FAILURE;
@@ -1060,7 +1060,7 @@ int cac_LsaRemovePrivileges( CacServerHandle * hnd, TALLOC_CTX * mem_ctx,
                                                 op->in.pol, 1,
                                                 ( const char ** ) &( op->in.
                                                                      name ),
-                                                NULL, &user_sid, &type );
+                                                NULL, 1, &user_sid, &type );
 
                if ( !NT_STATUS_IS_OK( hnd->status ) )
                        return CAC_FAILURE;
@@ -1122,7 +1122,7 @@ int cac_LsaClearPrivileges( CacServerHandle * hnd, TALLOC_CTX * mem_ctx,
                                                 op->in.pol, 1,
                                                 ( const char ** ) &( op->in.
                                                                      name ),
-                                                NULL, &user_sid, &type );
+                                                NULL, 1, &user_sid, &type );
 
                if ( !NT_STATUS_IS_OK( hnd->status ) )
                        return CAC_FAILURE;
@@ -1181,7 +1181,7 @@ int cac_LsaSetPrivileges( CacServerHandle * hnd, TALLOC_CTX * mem_ctx,
                                                 op->in.pol, 1,
                                                 ( const char ** ) &( op->in.
                                                                      name ),
-                                                NULL, &user_sid, &type );
+                                                NULL, 1, &user_sid, &type );
 
                if ( !NT_STATUS_IS_OK( hnd->status ) )
                        return CAC_FAILURE;