diff mbox

[1/9] libnsdb: Use correct LDAP attribute name to set FslPort

Message ID 20111205172311.7753.32811.stgit@degas.1015granger.net
State Accepted
Headers show

Commit Message

Chuck Lever Dec. 5, 2011, 5:23 p.m. UTC
After using nsdb_create_fsls_s() to create an FSL record, the
fedfsNsdbPort field contained the value for the fedfsFslPort
field.  This was never exposed before because the nsdb-create_fsl
tool sets both attributes to zero.

Introduced by commit 0520ee72: "Initial commit," (March 11, 2011).

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
---

 src/libnsdb/administrator.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff mbox

Patch

diff --git a/src/libnsdb/administrator.c b/src/libnsdb/administrator.c
index c857444..56b5f22 100644
--- a/src/libnsdb/administrator.c
+++ b/src/libnsdb/administrator.c
@@ -702,7 +702,7 @@  nsdb_create_fsl_add_nfs_entry_s(LDAP *ld, const char *nce,
 	if (serverport != 0) {
 		sprintf(serverportbuf, "%u", serverport);
 		nsdb_init_add_attribute(attrs[i++],
-				"fedfsNsdbPort", serverportvals, serverportbuf);
+				"fedfsFslPort", serverportvals, serverportbuf);
 	}
 	nsdb_init_add_attribute(attrs[i++],
 				"fedfsFslTTL", ttyvals, "300");