search for: get_username

Displaying 4 results from an estimated 4 matches for "get_username".

Did you mean: cert_username
2006 Feb 18
0
activerecord connections with xmlrpc
...mail, etc class User < ActiveRecord::Base ActiveRecord::Base.establish_connection( :adapter => "mysql", # etc. etc. ) end # given a user id get the user name def get_username(id) u = User.find(id) return u.username end s = XMLRPC::Server.new(8080) s.add_handler("get_username") do |user_id| get_username(user_id) end s.set_default_handler do |name, *args| raise XMLRPC::FaultException.new(-99, "Method #{name} missing" +...
2019 Feb 25
2
AD-DC samba_gpoupdate failing
Hi, I just upgraded to 4.8.9 and decided to give the samba_gpoupdate feature a whirl. However, it fails. The line that's failing is "gpos = ads.get_gpo_list(creds.get_username())" returning None. This is probably a failure, since it should otherwise return an empty list (if there were no gpos to return). But there is no output to indicate what may be failing. I have setup of three redundant domain controllers, all of them similarly failing. Any thought on this, b...
2019 Feb 25
2
AD-DC samba_gpoupdate failing
Well, I had a look at the python bindings and the error handling was in shambles. I fixed libgpo/pygpo.c and I now get: gpos = ads.get_gpo_list(creds.get_username()) SystemError: Failed to get machine token for 'DC01$' (CN=DC01,OU=Domain Controllers,DC=rvx,DC=is) (the failing call is status = gp_get_machine_token(self->ads_ptr, frame, dn, &token); I'm a former python core dev, so I know a bi...
2019 Feb 26
0
AD-DC samba_gpoupdate failing
...or handling. Will do some tests. On Mon, 25 Feb 2019 at 14:25, Kristján Valur Jónsson <kristjan at rvx.is> wrote: > Well, I had a look at the python bindings and the error handling was in > shambles. > I fixed libgpo/pygpo.c and I now get: > gpos = ads.get_gpo_list(creds.get_username()) > SystemError: Failed to get machine token for 'DC01$' (CN=DC01,OU=Domain > Controllers,DC=rvx,DC=is) > > (the failing call is status = gp_get_machine_token(self->ads_ptr, frame, > dn, > &token); > > I'm a...