search for: is_user

Displaying 3 results from an estimated 3 matches for "is_user".

Did you mean: ip_user
2005 Mar 10
8
Login controller additions
I have added roles and roles_users table and updated the model so that my users can have multiple roles. ("Admin" role does always have id = 1). I have added these methods to my application controller. <code> helper_method :is_admin? helper_method :is_user? def is_admin? if @session[''user''] @session[''user''].roles.find(1) else false end end def is_user? !@session[''user''].nil? end </code> The problem is that if a user does not have the role...
2005 Mar 17
0
usrmgr.exe and problems
...NFO_CLASS; } + + become_root(); + ret = pdb_update_group_mapping_entry(&map); + unbecome_root(); - if(!pdb_update_group_mapping_entry(&map)) { - return NT_STATUS_NO_SUCH_GROUP; + if(!ret) { + return NT_STATUS_NO_SUCH_GROUP; } return NT_STATUS_OK; @@ -4430,6 +4449,7 @@ BOOL is_user = False; NTSTATUS result; enum SID_NAME_USE type = SID_NAME_UNKNOWN; + BOOL ret; sid_copy( &delete_sid, &q_u->sid.sid ); @@ -4466,18 +4486,27 @@ pdb_init_sam(&sam_pass); - if ( pdb_getsampwsid(sam_pass, &delete_sid) ) { - is_user = True; + become_root();...
2005 May 11
1
SV: Error with usrmgr and groups.
It's exactly the same. Except that I use tdbsam instead of ldap and the error message therefore also is different in the log file. But the example and result is the same. Do you have any idea of workaround or fix? Cheers, Joel -----Ursprungligt meddelande----- Fr?n: Doug Campbell [mailto:doug@bpta.net] Skickat: den 11 maj 2005 10:49 Till: Joel Larsson, PF, Posten; samba@lists.samba.org