Home
last modified time | relevance | path

Searched refs:sam_ldb (Results 1 – 16 of 16) sorted by relevance

/dports/net-mgmt/wmi-client/wmi-1.3.16/Samba/source/libnet/
H A Dlibnet_samsync_ldb.c54 struct ldb_context *sam_ldb, *remote_ldb; member
108 ldb_errstring(state->sam_ldb)); in samsync_ldb_add_foreignSecurityPrincipal()
275 ldb_errstring(state->sam_ldb)); in samsync_ldb_handle_user()
450 ldb_errstring(state->sam_ldb)); in samsync_ldb_handle_user()
492 ldb_errstring(state->sam_ldb)); in samsync_ldb_delete_user()
581 ldb_errstring(state->sam_ldb)); in samsync_ldb_handle_group()
589 ldb_errstring(state->sam_ldb)); in samsync_ldb_handle_group()
631 ldb_errstring(state->sam_ldb)); in samsync_ldb_delete_group()
704 ldb_errstring(state->sam_ldb)); in samsync_ldb_handle_group_member()
840 ldb_errstring(state->sam_ldb)); in samsync_ldb_delete_alias()
[all …]
/dports/net/samba412/samba-4.12.15/source4/scripting/bin/
H A Drebuildextendeddn101 sam_ldb = Ldb(paths.samdb, session_info=session_info, credentials=credentials,lp=lp)
103 res2 = sam_ldb.search(expression="(objectClass=*)",base="", scope=SCOPE_BASE, attrs=attrs2)
104 …attrs.extend(get_linked_attributes(ldb.Dn(sam_ldb,str(res2[0]["schemaNamingContext"])),sam_ldb).ke…
105 … attrs.extend(get_dnsyntax_attributes(ldb.Dn(sam_ldb,str(res2[0]["schemaNamingContext"])),sam_ldb))
106 sam_ldb.transaction_start()
107 …res = sam_ldb.search(expression="(cn=*)", scope=SCOPE_SUBTREE, attrs=attrs,controls=["search_optio…
115 m.dn = ldb.Dn(sam_ldb, str(dn))
121 sam_ldb.modify(m)
122 …res3 = sam_ldb.search(expression="(&(distinguishedName=%s)(%s=*))"%(dn,att),scope=SCOPE_SUBTREE, a…
129 sam_ldb.transaction_cancel()
[all …]
H A Denablerecyclebin37 sam_ldb = Ldb(url, session_info=system_session(), credentials=creds, lp=lp_ctx)
40 res = sam_ldb.search(base="", expression="", scope=SCOPE_BASE, attrs=["configurationNamingContext"])
47 msg.dn = ldb.Dn(sam_ldb, "")
51 res = sam_ldb.modify(msg)
/dports/net/samba412/samba-4.12.15/source4/torture/drs/python/
H A Ddelete_object.py61 def _check_obj(self, sam_ldb, obj_orig, is_deleted): argument
65 res = sam_ldb.search(base=self.domain_dn,
71 dodn = self._deleted_objects_dn(sam_ldb)
127 self._check_obj(sam_ldb=self.ldb_dc1, obj_orig=user_orig, is_deleted=False)
135 self._check_obj(sam_ldb=self.ldb_dc1, obj_orig=user_orig, is_deleted=True)
203 self._check_obj(sam_ldb=self.ldb_dc1, obj_orig=user_orig, is_deleted=True)
205 self._check_obj(sam_ldb=self.ldb_dc2, obj_orig=user_orig, is_deleted=False)
222 self._check_obj(sam_ldb=self.ldb_dc1, obj_orig=user_orig, is_deleted=True)
224 self._check_obj(sam_ldb=self.ldb_dc2, obj_orig=user_orig, is_deleted=True)
291 self._check_obj(sam_ldb=self.ldb_dc1, obj_orig=user_orig, is_deleted=True)
[all …]
H A Drepl_move.py111 def _check_metadata(self, user_dn, sam_ldb, drs, metadata, expected): argument
214 res = sam_ldb.search(base='<GUID=%s>' % guid_str,
310 self._check_obj(sam_ldb=self.ldb_dc1, drs=self.drs_dc1,
351 user_cur = self._check_obj(sam_ldb=self.ldb_dc1, drs=self.drs_dc1,
383 user_cur = self._check_obj(sam_ldb=self.ldb_dc2, drs=self.drs_dc2,
583 self._check_obj(sam_ldb=self.ldb_dc1, drs=self.drs_dc1,
766 self._check_obj(sam_ldb=self.ldb_dc1, drs=self.drs_dc1,
946 self._check_obj(sam_ldb=self.ldb_dc1, drs=self.drs_dc1,
1127 self._check_obj(sam_ldb=self.ldb_dc1, drs=self.drs_dc1,
1908 def _check_obj(self, sam_ldb, obj_orig, is_deleted): argument
[all …]
H A Dreplica_sync_rodc.py68 def _check_deleted(self, sam_ldb, guid): argument
70 res = sam_ldb.search(base='<GUID=%s>' % guid,
76 dodn = self._deleted_objects_dn(sam_ldb)
H A Ddrs_base.py96 def _deleted_objects_dn(self, sam_ldb): argument
98 res = sam_ldb.search(base=wkdn,
104 def _lost_and_found_dn(self, sam_ldb, nc): argument
106 res = sam_ldb.search(base=wkdn,
H A Dreplica_sync.py131 def _check_deleted(self, sam_ldb, guid): argument
133 res = sam_ldb.search(base='<GUID=%s>' % guid,
139 dodn = self._deleted_objects_dn(sam_ldb)
/dports/net-mgmt/wmi-client/wmi-1.3.16/Samba/source/dsdb/samdb/
H A Dsamdb.c60 int samdb_search_domain(struct ldb_context *sam_ldb, in samdb_search_domain() argument
72 count = gendb_search_v(sam_ldb, mem_ctx, basedn, in samdb_search_domain()
130 const char *samdb_search_string(struct ldb_context *sam_ldb, in samdb_search_string() argument
146 struct ldb_dn *samdb_search_dn(struct ldb_context *sam_ldb, in samdb_search_dn() argument
204 int samdb_search_count(struct ldb_context *sam_ldb, in samdb_search_count() argument
225 uint_t samdb_search_uint(struct ldb_context *sam_ldb, in samdb_search_uint() argument
253 int64_t samdb_search_int64(struct ldb_context *sam_ldb, in samdb_search_int64() argument
985 return ldb_add(sam_ldb, msg); in samdb_add()
993 return ldb_delete(sam_ldb, dn); in samdb_delete()
1001 return ldb_modify(sam_ldb, msg); in samdb_modify()
[all …]
/dports/net/samba412/samba-4.12.15/source4/rpc_server/lsa/
H A Ddcesrv_lsa.c96 struct ldb_context *sam_ldb; member
1059 ldb_errstring(sam_ldb))); in add_trust_user()
1100 struct ldb_context *sam_ldb; in dcesrv_lsa_CreateTrustedDomain_base() local
1115 sam_ldb = policy_state->sam_ldb; in dcesrv_lsa_CreateTrustedDomain_base()
1229 ret = gendb_search(sam_ldb, in dcesrv_lsa_CreateTrustedDomain_base()
1319 ret = ldb_add(sam_ldb, msg); in dcesrv_lsa_CreateTrustedDomain_base()
1327 ldb_errstring(sam_ldb))); in dcesrv_lsa_CreateTrustedDomain_base()
1333 ldb_errstring(sam_ldb))); in dcesrv_lsa_CreateTrustedDomain_base()
1339 ldb_errstring(sam_ldb))); in dcesrv_lsa_CreateTrustedDomain_base()
1873 ldb_errstring(sam_ldb))); in update_trust_user()
[all …]
H A Dlsa_init.c74 state->sam_ldb = samdb_connect(state, in dcesrv_lsa_get_policy_state()
80 if (state->sam_ldb == NULL) { in dcesrv_lsa_get_policy_state()
92 state->domain_dn = ldb_get_default_basedn(state->sam_ldb); in dcesrv_lsa_get_policy_state()
99 state->forest_dn = ldb_get_root_basedn(state->sam_ldb); in dcesrv_lsa_get_policy_state()
104 ret = ldb_search(state->sam_ldb, mem_ctx, &dom_res, in dcesrv_lsa_get_policy_state()
146 …state->builtin_dn = samdb_search_dn(state->sam_ldb, state, state->domain_dn, "(objectClass=builtin… in dcesrv_lsa_get_policy_state()
153 state->system_dn = samdb_search_dn(state->sam_ldb, state, in dcesrv_lsa_get_policy_state()
H A Dlsa.h42 struct ldb_context *sam_ldb; member
H A Dlsa_lookup.c100 state->sam_ldb, in dcesrv_lsa_lookup_name()
127 ret = gendb_search(state->sam_ldb, mem_ctx, domain_dn, &res, attrs, in dcesrv_lsa_lookup_name()
240 ret = gendb_search(state->sam_ldb, mem_ctx, domain_dn, &res, attrs, in dcesrv_lsa_lookup_sid()
1751 status = dsdb_trust_routing_table_load(policy_state->sam_ldb, in dcesrv_lsa_lookup_name_account()
1914 status = dsdb_trust_routing_table_load(policy_state->sam_ldb, in dcesrv_lsa_lookup_name_winbind()
2051 status = dsdb_trust_routing_table_load(policy_state->sam_ldb, in dcesrv_lsa_lookup_sid_winbind()
/dports/net-mgmt/wmi-client/wmi-1.3.16/Samba/source/rpc_server/lsa/
H A Ddcesrv_lsa.c52 struct ldb_context *sam_ldb; member
84 struct ldb_context *sam_ldb; member
297 if (state->sam_ldb == NULL) { in lsa_get_policy_state()
310 state->domain_dn = samdb_base_dn(state->sam_ldb); in lsa_get_policy_state()
1888 ldb_errstring(state->sam_ldb))); in lsa_EnumAccountRights()
2194 secret_state->sam_ldb = talloc_reference(secret_state, policy_state->sam_ldb); in lsa_CreateSecret()
2203 ret = gendb_search(secret_state->sam_ldb, in lsa_CreateSecret()
2271 ldb_errstring(secret_state->sam_ldb))); in lsa_CreateSecret()
2327 secret_state->sam_ldb = talloc_reference(secret_state, policy_state->sam_ldb); in lsa_OpenSecret()
2335 ret = gendb_search(secret_state->sam_ldb, in lsa_OpenSecret()
[all …]
/dports/net/samba412/samba-4.12.15/source4/dsdb/common/
H A Dutil.c789 return ldb_operr(sam_ldb); in samdb_msg_add_dom_sid()
823 return ldb_oom(sam_ldb); in samdb_msg_add_addval()
853 return ldb_oom(sam_ldb); in samdb_msg_add_addval()
879 return ldb_oom(sam_ldb); in samdb_msg_add_delval()
909 return ldb_oom(sam_ldb); in samdb_msg_add_delval()
926 return ldb_oom(sam_ldb); in samdb_msg_add_int()
957 return ldb_oom(sam_ldb); in samdb_msg_add_int64()
989 return ldb_oom(sam_ldb); in samdb_msg_add_hash()
1098 ret = ldb_transaction_start(sam_ldb); in dsdb_autotransaction_request()
1103 ret = ldb_request(sam_ldb, req); in dsdb_autotransaction_request()
[all …]
/dports/net/samba412/samba-4.12.15/source3/passdb/
H A Dpdb_samba_dsdb.c3193 struct ldb_context *sam_ldb,
3230 ret = samdb_msg_add_uint(sam_ldb, msg, msg, "userAccountControl",
3266 ret = ldb_build_add_req(&req, sam_ldb, mem_ctx, msg, NULL, NULL,
3279 ret = dsdb_autotransaction_request(sam_ldb, req);
3283 ldb_errstring(sam_ldb)));